pgsql FAQ

本文介绍了如何解决pgadmin3在加载libpq.so.5时遇到的问题,包括找不到共享对象文件的情况,并提供了解决方案。同时,针对psql无法连接到本地服务器的问题给出了具体步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1,./pgadmin3: error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory

解决方法:

1: Know the path of "libpq.so.5"

find / -name libpq.so.5

Output example:"/usr/pgsql-9.4/lib/libpq.so.5"If found nothing, check if you have already installed the suitable postgresql-libs for your postgresql version and your OS platform

2: Symbolic link that library in a "well known" library path like "/usr/lib":

ln -s /usr/pgsql-9.4/lib/libpq.so.5 /usr/lib/libpq.so.5

Attention:If your platform is 64 bit, you MUST also symbolic link to 64 bit libraries path:

ln -s /usr/pgsql-9.4/lib/libpq.so.5 /usr/lib64/libpq.so.5

2、connections on Unix domain socket "/tmp/.s.PGSQL.5432"?

psql进入数据库时出现:
psql: could not connect to server: No such file or directory
        Is the server running locally and accepting
        connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
解决方案:
1、copy一个.s.PGSQL.5432文件,并增加权限。
2、调小共享内存、BUFFER、最大联接数。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值