<分区>
当我尝试使用 psql -d root -U postgres
登录到 postgresql 时,出现以下错误。
psql: FATAL: Peer authentication failed for user "postgres"
当只输入 psql
时出现以下错误:
psql: FATAL: no pg_hba.conf entry for host "[local]", user "root", database "root", SSL off
我能做什么?我无法理解。
提前致谢