LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1445|回复: 6

phppgadmin can't login,need help!

[复制链接]
发表于 2003-12-31 12:26:03 | 显示全部楼层 |阅读模式
in /etc/make.conf

[php]USE="X gtk gnome tcltk ssl postgresql unixODBC php apache apache2"
CFLAGS="-O3 -march=i686 -funroll-loops -pipe"[/php]


about my postgresql
in /etc/conf.d/postgresql

[php]GOPTS="-i -N 1024 -B 2048"[/php]

and in postgresql.conf,I set

[php]tcpip_socket = true
port = 5432[/php]

in  pg_hba.conf,I added
[php]host    all         postgres    192.168.1.49      255.255.255.0     md5[/php]

and I have changed postgres' passwd by
[php]ALTER USER postgres PASSWORD '123456';[/php]

I have done all of above,but the phppgadmin can't login yet.

Login disallowed


I missed sth?

the phppgadmin version is 3.2.1
:help
发表于 2003-12-31 13:02:08 | 显示全部楼层
这个东东我还没有登录成功过,以前我也发过帖子,但很快就沉下去了。我现在就用postgres登录控制台,psql -d xxx(数据库名)这样来操作。而且我发现emerge的phppgadmin的conf目录里竟然没有任何配置文件?
 楼主| 发表于 2004-1-5 10:11:35 | 显示全部楼层
phppgadmin disallows logins by default administrative users such as the postgres user.


so I did sth below.

[php]create user rks with password '********';
alter user rks createuser createdb;


host    all         rks         192.168.1.49      255.255.255.0     md5[/php]

now it works well~
发表于 2004-1-5 12:21:44 | 显示全部楼层
是吗?待会我也去试试看;)
发表于 2004-1-5 15:11:40 | 显示全部楼层

那能不能修改什么phppgadmin让他能让postgres登录

最初由 rushboy 发表
so I did sth below.

[php]create user rks with password '********';
alter user rks createuser createdb;


host    all         rks         192.168.1.49      255.255.255.0     md5[/php]

now it works well~
 楼主| 发表于 2004-1-6 09:02:37 | 显示全部楼层
nano -w /your-path/pgadmin/conf/config.inc.php

$conf['extra_login_security'] = false;
发表于 2004-1-6 19:25:34 | 显示全部楼层
已经搞定了;)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表