LinuxSir.cn,穿越时空的Linuxsir!

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

用postgresql的问题?怎么开始?

[复制链接]
发表于 2007-8-8 06:56:10 | 显示全部楼层 |阅读模式
CH:~# su postgres
postgres@CH:/root$ create role TiSV;
bash: create: command not found
postgres@CH:/root$ CREATE ROLE TiSV;
bash: CREATE: command not found
postgres@CH:/root$ createuser TiSV;
Shall the new role be a superuser? (y/n) y
CREATE ROLE
postgres@CH:/root$ su TiSV
未知 id:TiSV
postgres@CH:/root$ select usename from pg_role;
bash: syntax error near unexpected token `from'

--------------------------------
我的问题是:怎么开始用postgresql?怎么知道已经创建了用户?怎么开始?
发表于 2007-8-8 08:17:04 | 显示全部楼层
回复 支持 反对

使用道具 举报

发表于 2007-8-8 09:46:03 | 显示全部楼层
在bash下面直接执行SQL了?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-8-9 21:38:53 | 显示全部楼层
我现在的问题是,怎么开始使用pq?
就是说我创建了一个用户,怎么使用这个用户来使用pq?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-8-9 22:02:43 | 显示全部楼层
我现在安装了pgadmin3,但我连联机服务器都联不上
请问一下,pgadmin3出来的联机窗口怎么添啊?
回复 支持 反对

使用道具 举报

发表于 2007-8-9 22:03:02 | 显示全部楼层
看看小P写的PostgreSQL的连载吧
http://www.linuxsir.cn/main/?q=taxonomy/term/37
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-8-9 22:17:42 | 显示全部楼层
重新创建了一个有密码的用户,现在pgamdin3总算连上去了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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