Stuart ONE

我有一头小毛驴,我从来也不骑……

 

How to connect to a postgresql server from client in Debian

Im using the postgresql 8.0 here:

1. Modifiy the file: /etc/postgresql/8.0/main/pg_hba.conf
    add a line below the "# IPv4 local connections:"
host    all         all         192.168.0.0/24        md5

2. Modify the file: /etc/postgresql/8.0/main/postgresql.conf
    set the Connection Settings like below:
- Connection Settings -

listen_addresses 
= '*'  # what IP interface(s) to listen on;
                                # defaults 
to localhost, '*' = any
port 
= 5432
max_connections 
= 100

3. Restart the postgresql 8.0

4. Now we can connect to postgresql server using clients.
    for eg.
    psql -d DBNAME -U USERNAME -h HOST

posted on 2006-01-19 14:47 Stuart 阅读(317) 评论(0)  编辑  收藏 所属分类: DataBase


只有注册用户登录后才能发表评论。


网站导航:
 

导航

统计

公告

常用链接

留言簿(3)

随笔分类

随笔档案

文章分类

相册

BlogRoll

Tech websites

搜索

积分与排名

最新评论

阅读排行榜

评论排行榜