小编tau*_*ufn的帖子

运行 Laravel 迁移时出现密码验证失败错误

我正在尝试在 DigitalOcean Droplet 上部署我的 Laravel 应用程序。Droplet 是使用 nginx、php7 和 postgres 设置的,我跟进了 DigitalOcean 的关于如何设置它们的教程。然后我尝试按照本教程学习如何使用 git hook 等部署 Laravel 应用程序。

现在应用程序本身已启动并运行,我可以访问页面和所有内容。可我跑不动了php artisan migrate。我一直在更改文件中的数据库用户名、名称、密码.env,但我总是收到完全相同的错误:

[Illuminate\Database\QueryException]
SQLSTATE[08006] [7] FATAL:  password authentication failed for user "deploy"
FATAL:  password authentication failed for user "deploy" (SQL: select * from information_schema.tables where table_schema = apollo and table_name = migrations)


[Doctrine\DBAL\Driver\PDOException]
SQLSTATE[08006] [7] FATAL:  password authentication failed for user "deploy"
FATAL:  password authentication failed for user "deploy"


[PDOException]
SQLSTATE[08006] [7] FATAL: …
Run Code Online (Sandbox Code Playgroud)

postgresql laravel psql artisan-migrate laravel-5.3

2
推荐指数
1
解决办法
5629
查看次数

标签 统计

artisan-migrate ×1

laravel ×1

laravel-5.3 ×1

postgresql ×1

psql ×1