然后尝试运行Tinker,它使用以下连接:Illuminate/Database/QueryException with message 'SQLSTATE[08006] [7] timeout expired (SQL: select * from "foobars" where "foobars"."deleted_at" is null limit 1)'
Illuminate\Database\QueryException : SQLSTATE[08006] [7] timeout expired (SQL: select * from information_schema.tablesConnection.php:664
660| // If an exception occurs when attempting to run a query, we'll format the error661|
液滴是用nginx,php7和postgres安装的,我跟踪DigitalOcean的tuts关于如何设置它们。然后,我尝试跟踪关于如何使用git钩子部署Laravel应用程序等等。我一直在更改.env文件上的数据库用户名、名称、密码,但我总是得到相同的错误:SQLSTATE[08006] [7] FATALpassword authentication failed for user "deploy"
FATAL: pass
在Go中与SQL数据库交互的一种常见方法是使用内置的database/sql接口。然而,database/sql没有提供任何特定的错误类型,而是由驱动程序来决定。这带来了一个问题:除了零检查之外,您对这些特定错误所做的任何错误处理现在都与特定驱动程序的假设无关。如果以后决定更改驱动程序,则必须修改所有错误处理代码。如果您想支持多个驱动程序,您也需要为该驱动程序编写额外的检查。 if errors.