postgresql – 如何在Postgres中使用phpPgAdmin
发布时间:2020-12-13 16:08:51 所属栏目:百科 来源:网络整理
导读:我已经在Centos 6.4 64位上安装了Postgres 8.4.我想用yun安装的phpPgAdmin-5.0.4-1来管理Postgres数据库(比如 MySQL和phpMyadmmin) 安装phpPgAdmin-5.0.4-1之后我无法通过访问192.168.7.4/phpPgAdmin/(192.168.7.4是我的Centos服务器)登录phpPgAdmin,它总是
我已经在Centos 6.4 64位上安装了Postgres 8.4.我想用yun安装的phpPgAdmin-5.0.4-1来管理Postgres数据库(比如
MySQL和phpMyadmmin)
安装phpPgAdmin-5.0.4-1之后我无法通过访问192.168.7.4/phpPgAdmin/(192.168.7.4是我的Centos服务器)登录phpPgAdmin,它总是说“登录失败”虽然我确定我输入用户名(postgres )和密码正确 以下是我的信息,希望您能提供帮助: netstat -tupln | grep postmaster tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN 771/postmaster tcp 0 0 :::5432 :::* LISTEN 771/postmaster /etc/phpPgAdmin/config.inc.php $conf['servers'][0]['desc'] = 'PostgreSQL'; $conf['servers'][0]['host'] = '192.168.7.4'; $conf['extra_login_security'] = false; /var/lib/pgsql/data/postgresql.conf listen_addresses = '*' /var/lib/pgsql/data/pg_hba.conf local all all ident # IPv4 local connections: host all all 127.0.0.1/32 ident # IPv6 local connections: host all all ::1/128 ident 提前致谢. 解决方法
你的设置很好,除了没有192.168.7.4条目的pg_hba.conf.
考虑添加它并重新加载postgresql服务: host all all 192.168.7.4/32 md5 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |