「postgres」登录 psql: FATAL: Peer authentication failed for user "postgres"

【问题现象】

自搭postgres数据库,然后执行 #psql -U postgres  提示psql: FATAL:  Peer authentication failed for user "postgres"

【解决】

切换到Linux用户postgres,然后执行psql:

su - postgres
-bash-4.2$ psql

猜你喜欢

转载自www.cnblogs.com/ftrako/p/10265553.html