无法登录 phpPgAdmin

无法登录 phpPgAdmin

我正在尝试从远程客户端登录 phpPgAdmin。我已创建用户 root,但当我登录时,phpPgAdmin 返回一条错误消息,提示“无法登录”

当我检查日志时,它显示:“提供的用户名(root)和经过验证的用户名(apache)不匹配”。

我应该怎么办?

答案1

# sudo su - postgres
# psql -d template1
template1=# ALTER USER postgres WITH PASSWORD 'new password';
# service postgresql restart

https://superuser.com/questions/414482/how-to-change-root-password-for-postgresql-phppgadmin

相关内容