您现在的位置是:课程教程文章
postgresql怎么登录上
2023-12-18 20:35课程教程文章 人已围观
-
腾讯云数据库PostgreSQL概述
腾讯云数据库PostgreSQL概述【适用对象】 所有人,腾讯云数据库PostgreSQL用户 【课程大纲】 一、PostgreSQL简... -
云贝教育 | PostgreSQL CA基础课,打好基础,
云贝教育 | PostgreSQL CA基础课,打好基础,购买后,需要课件的小伙伴请添加学院老师微信: 陈老师19941464235/高老师yunb... -
云贝教育 | PostgreSQL内幕解密系列 讲师:
云贝教育 | PostgreSQL内幕解密系列 讲师:PostgreSQL内幕解密系列 课程介绍: 讲述PostgreSQL的内功,帮助大家打牢基础 快速从... -
PostgreSQL数据库管理(二)
PostgreSQL数据库管理(二)PostgreSQL是以加州大学伯克利分校计算机系开发的POSTGRES,现在已经更名为Postgre...
postgresql登录失败的解决方法:
1.确认phpPgAdmin是否可以链接到postgresql数据库,方法:查看data/pg_log下的log有没有phpPgAdmin的访问记录,有则说明可以链接。
以下为出错信息:
LOG: provided username (postgres) and authenticated username (apache) don't match FATAL: Ident authentication failed for user "postgres"
2.查看postgresql的认证方法:pg_hba.conf
# "local" is for Unix domain socket connections only local all all ident # IPv4 local connections: host all all 127.0.0.1/32 md5 # IPv6 local connections: host all all ::1/128 md5
看着好像跟ident认证方式有点关系,最后在官方文档找到一句话:
When using an external authentication system like Ident or GSSAPI, the name of the operating system user that initiated the connection might not be the same as the database user he needs to connect as.
明白了,原来上面的[local all all ident]搞的鬼,如果是ident的话需要配置 pg_ident.conf文件,所以果断换成除以上两种加密方式外的方法
重启postgresql:#service postgresql restart.
再访问一次,成功。
课程教程:postgresql怎么登录上上一篇:python3怎么取幂
下一篇:没有了