无法通过yii2迁移脚本登录postgresql。在centos 7上运行
致命错误总是
Error: SQLSTATE(08006) [7] FATAL: Ident authentication failed for user "username"
我已经更改了pg_hba.conf中不再有用于身份验证的标识。但它仍然试图反对ident而不是trust,密码或md5(尝试了所有这些)
我猜测由于某种原因,它没有读取pg_hba.conf文件,我在postgresql.conf中手动添加了它的完整路径,但仍然说身份验证失败。
pg_hba.conf包含
local all all password
host all all 127.0.0.1/32 password
host all all ::1/128 password
我可以从命令行登录没问题。
答案 0 :(得分:0)
使用systemctl start postgresql-9.3启动服务,但停止并重新启动并未重新加载数据。我不得不重新启动服务器以使其重新加载数据。
首先尝试
systemctl stop postgresql-9.3
systemctl start postgresql-9.3
如果不起作用,请重启机器