在unix5.05下,建立一个用户dfgz,执行dfgz,提示psql no found? 怎么办?
by ysljj - PostgreSQL - 2005-12-20 09:52:46 阅读(2026) 回复(5)
[quote][root@lacl-001 root]# rpm -qa|grep post postgresql-server-7.4.2-1PGDG rh-postgresql-libs-7.3.4-8 postgresql-7.4.2-1PGDG postgresql-docs-7.4.2-1PGDG [root@lacl-001 root]# su postgres bash-2.05b$ psql psql: relocation error: psql: undefined symbol: get_progname bash-2.05b$ [/quote]
在shell 中 用su - postgres 出现 -bash-2.05b$ 然后输入 psql template1 出现 psql: FATAL: 为用户 "postgres" IDENT 认证失败。 怎么回事情
zl@sunnydog:~$ psql /usr/lib/postgresql/8.3/bin/psql: symbol lookup error: /usr/local/lib/libreadline.so.5: undefined symbol: PC os:ubuntu 最开始直接用代码编译按装提不 libreadline这个库找不见,后来手动编译安装libreadline后还是不能成功。 直接apt-get install postgresql,安装成功,但是用psql连接是却出现了上述的问题,请问是什么原因? [ 本帖最后由 sunnydogzhou 于 2008-9-16 23:18 编辑 ]
数据库里一张表mytable mytable有两项 aaa 类型: integer bbb 类型:timestamp without time zone 我写c代码,插入一条记录到表中,看了一下postgresql的手册,可以连上数据库了, aaa可以用int 类型的一个值就能插入,时间值有,但是不知道timestamp without time zone 这个类型的值我用c语言什么类型的值对应,然后插入。 以前没有接触过数据库,请大家帮帮忙,把简单的代码写一下吧,谢谢啦。
[root@localhost data]# psql -U postgres -W -d bolcc Password: psql: FATAL: IDENT authentication failed for user "postgres" [root@localhost data]# psql bolcc -U bolcc psql: FATAL: IDENT authentication failed for user "bolcc" 有什么办法解决这个问题
本人很菜,只知道可以使用 \i db.pgsql的方法来导入创建数库据表,但如何将已有的数据库备份成.pgsql文件形式来移植异机的pgsql数据库中呢? 请能告诉详细的密令行格式。
RH AS 4 不能執行 psql -l ERROR: relation "pg_catalog.pg_user" does not exist 是什麼原因????
以前公司使用的是redhat 9,里面使用的postgresql版本是7.3.4, 现在公司使用的是fedora code2,postgresql版本是7.4.5, 想把以前postgresql里面的库mis转储到新的server里面,或者说是备份到fc2里面,我采用了两种方法: 数据转移 1.在fc2(ip address 192.168.1.10)里面 service postgresql stop mv /var/lib/pgsql /var/lib/pgsql~ 2.在rh9(ip address 192.168.1.20)里面 service postgresql stop scp -r -p 22 /var/lib/pg...