失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > 关于连接PostgreSQL时提示 FATAL: password authentication failed for user

关于连接PostgreSQL时提示 FATAL: password authentication failed for user

时间:2024-02-06 01:51:39

相关推荐

关于连接PostgreSQL时提示 FATAL: password authentication failed for user

独角兽企业重金招聘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 》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。