免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3451 | 回复: 1
打印 上一主题 下一主题

谁能解答新用户SCI登陆 数据库名BMC --port 5446 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-02-02 01:25 |只看该作者 |倒序浏览
谁能解答新用户SCI登陆 数据库名BMC --port 5446出现的错误?

1.先创建一个新用户SCI

bash-2.05b$ createuser -P -p5446 SCI
Enter password for user "SCI":
Enter it again:
Shall the new user be allowed to create databases? (y/n) n
Shall the new user be allowed to create more new users? (y/n) n
CREATE USER

2.PostgreSQL已经启动,以postgres身份登陆

bash-2.05b$ psql BMC -p 5446
Welcome to psql 7.3.10-RH, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help on internal slash commands
       \g or terminate with semicolon to execute query
       \q to quit

psql: relocation error: psql: undefined symbol: PQgetssl


bash-2.05b$ psql -p 5446 -U SCI BMC
Welcome to psql 7.3.10-RH, the PostgreSQL interactive terminal.

Type:  \copyright for distribution terms
       \h for help with SQL commands
       \? for help on internal slash commands
       \g or terminate with semicolon to execute query
       \q to quit

psql: relocation error: psql: undefined symbol: PQgetssl

从参考的文献中得知:
http://www.pgsqldb.org/pgsqldoc-8.1c/tutorial-accessdb.html

预想出现的应该是:
mydb=>
最后一行也可能是
mydb=#
_________________________________

论坛徽章:
0
2 [报告]
发表于 2007-02-02 05:42 |只看该作者

自己找到答案了.

因为登陆用的是ssh,所以如果是用SCI这个新建的用户名运行psql去访问BMC就会出这个错.

但是如果用的是命令:su postgres -c"/usr/local/pgsql_15/bin/psql BMC --port=5446"就可以,因为/etc/passwd下已经有postgres了
下一步我想用SCI这个新建的数据库用户名去登陆phppgAdmin, 本来User ID 是dbadmin,

Reece Hart <[EMAIL PROTECTED]> writes:
> On Thu, 2004-01-22 at 16:13, Phil Campaigne wrote:
>> psql: relocation error: psql: undefined symbol: PQgetssl

> I vaguely remember seeing a similar message when I inadvertently
> mismatched versions of psql and libpq. I think that the problem was psql
> resolving to the wrong libpq, but this is an old memory.

This undoubtedly indicates that you have an SSL-enabled psql that is
trying to use a non-SSL-enabled libpq.so.  So (a) you were not
consistent about your configure options between 7.3.2 and 7.3.4
--- you might want to look and see if there were any other unintentional
changes; and (b) your ldconfig or LD_LIBRARY_PATH setup is finding the
"wrong" version of libpq.so.  Reece's suggestion to use ldd will help
you figure out what's up with (b).
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP