Peer authentication failed for user "postgres" 的解决办法
2018-03-10 15:08
1576 查看
1. Peer authentication 是默认的配置,如果你的计算机用户名和你的postgres数据库名是一样的话,那么就不会出现此错误,不需要为你的数据库设置密码。2. md5 authentication,它需要密码。而我的计算机用户名和我的数据库名不一致,所以需要把Peer authentication改成md5 authentication,然后给数据库设置密码。在哪里改?执行命令: vi /var/lib/pgsql/10/data/pg_hba.conf 找到下面的一行:local all postgres peer改成local all postgres md5然后systemctl restart postgresql-10
相关文章推荐
- pgadmin3 新建服务器出现错误 Peer authentication failed for user "postgres" 的解决办法
- Postgres 解决"Peer authentication failed for user 'postgres'"的问题
- Rails: could not connect to database postgres: FATAL: Peer authentication failed for user "username"
- 关于连接PostgreSQL时提示 FATAL: password authentication failed for user "连接用户名" 的解决办法
- FATAL: Peer authentication failed for user "geo_rails_test_creator"
- pg_dump: [archiver (db)] connection to database “dbase” failed: FATAL: Peer authentication failed for user “postgres”
- ios在真机上调试时出现“Error launching remote program: failed to get the task for process xxx"解决办法(转)
- 关于问题 mysql"Access denied for user root@localhost" 的解决办法
- iOS开发- "duplicate symbol for architecture i386 clang: error: linker command failed with exi" 解决办法
- centos针对postgres出现的postgresql Ident authentication failed for user
- OperationalError: FATAL: Ident authentication failed for user “postgres”
- 如何解决Login failed for user: "AccountName"这个错误
- Error for wireless request "Set AP Address" (8B14) : SET failed on device wlan0 错误解决办法
- macOS卸载MySQL数据库与workbench提示"Your connection attempt failed for user 'root' from your host ..."解决方法
- SQL : Microsoft SQL Server-Login failed for user ‘username’解决办法
- psql: FATAL: Peer authentication failed for user “xxx”
- Login failed for user 'NT AUTHORITY\NETWORK SERVICE'. 解决办法
- (转载)postgresql navicat 客户端连接验证失败解决方法:password authentication failed for user
- 【OpenStack】SSH登录虚拟机出现"Read from socket failed: Connection reset by peer"问题的解决办法
- MySQL安装后出现“Error 1045(28000) Access Denied for user....."解决办法