无法通过 yii2 迁移脚本登录 postgresql。在centos 7上运行
致命错误总是
Error: SQLSTATE(08006) [7] FATAL: Ident authentication failed for user "username"
我已更改 pg_hba.conf 中不再有 ident 进行身份验证。但它仍在尝试针对 ident 而不是信任、密码或 md5 运行(尝试了所有这些)
我猜由于某种原因它没有读取 pg_hba.conf 文件,我已经在 postgresql.conf 中手动添加了它的完整路径,但仍然说 ident 身份验证失败。
pg_hba.conf 包含
local all all password
host all all 127.0.0.1/32 password
host all all ::1/128 password
我可以从命令行登录没问题。