关于 Ident authentication failed for user "postgres" 的问题
关于 Ident authentication failed for user “postgres” 的问题
问题: 很明显是密码不正确的问题,一眼看懂
解决方法:1更改数据库用户 postgres
的密码
su postgres
ALTER USER postgres WITH PASSWORD 'bunengtaijiandan';
然后去改配置文件 .env
然后发现没有用
- 更改 /etc/postgresql/10/main/下的
pg_hba.conf
顺便改了postgresql.conf
尝试用navicat
去链 接链接成功,真难受
可能是缓存原因于是
php artisan config:clear
发现还是
Ident authentication failed for user "postgres"
真的难受难道是redis 缓存
redis-cli //试一下 keys * //看一下有没得缓存 "passport_database_passport_cache:JYV8m4jamvIN1UfaKkNiYuEd0vpdRLQ5wdYLTA4T" //震惊了,居然是这个缓存 flushall
然后一看 还是
Ident authentication failed for user "postgres"
再见
好的解决问题
DB_HOST 用IP地址 不要 localhost
DB_HOST 用IP地址 不要 localhost
DB_HOST 用IP地址 不要 localhost
本作品采用《CC 协议》,转载必须注明作者和本文链接