独角兽企业重金招聘Python工程师标准>>>
借鉴
/u/3371661/blog/3040763
一直以为是密码设错了,其它应该是权限问题【个人理解】
alterrolepostgreswithpassword123;
解决方法
1、编辑pg_hba.conf,将md5认证修改成trust认证,编辑后退出保存
3、psql连接,用alterrole修改密码
[postgres@pgsqldb-masterbin]$psql
psql(9.2.3)
Type"help"forhelp.
postgres=#alterrolepostgreswithpassword123;
ALTERROLE
postgres=#
4、退出psql
5、编辑pg_hba.conf,将turst认证修改成md5认证,编辑后退出保存
重启
systemctl restart postgresql-9.6
在postgres用户下执行下面&#
关于连接PostgreSQL时提示 FATAL: password authentication failed for user 连接用户名 的解决办法【自己试验通过】...
如果觉得《关于连接PostgreSQL时提示 FATAL: password authentication failed for user 》对你有帮助,请点赞、收藏,并留下你的观点哦!