postgres 错误

一、错误:psql: FATAL: Peer authentication failed for user "postgres"sql

    解决办法以下:dom

        1). 运行下面的命令编辑pg_hba.conf文件 vi  /etc/postgresql/10/main/pg_hba.confsocket

        2). 将 # Database administrative login by Unix domain socketpost

                local     all      postgres        peer  改成 local     all     postgres         trustpostgresql

                # IPv4 local connections:md5

                #host    all             all             127.0.0.1/32            md5it

                改为
                 host    all             all             127.0.0.1/32            trustio

        3). 保存后执行下面的命令从新加载配置文件: /etc/init.d/postgresql reload配置

 

后续遇到其余问题再补录rust

相关文章
相关标签/搜索