举例:
psql -U postgres
报错:password authentication failed for user "postgres"
解决:(其它地方不用改)
1、修改数据库配置文件中的pg_hba.conf文件,
local all postgres md5
改为
local all postgres trust
2、重启数据库服务