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 閱讀(330) 評論(0)  編輯  收藏 所屬分類: DataBase


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           

          導航

          統計

          公告

          常用鏈接

          留言簿(3)

          隨筆分類

          隨筆檔案

          文章分類

          相冊

          BlogRoll

          Tech websites

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 栾川县| 马公市| 民丰县| 乐东| 崇州市| 东阿县| 读书| 定南县| 昭觉县| 区。| 衡水市| 乃东县| 吉木乃县| 宁德市| 金溪县| 兴安县| 常德市| 新乡市| 泰安市| 雷州市| 英山县| 旌德县| 延寿县| 本溪| 察雅县| 自贡市| 友谊县| 杂多县| 应城市| 瑞金市| 九龙城区| 内黄县| 专栏| 娄底市| 通渭县| 永吉县| 武穴市| 岑溪市| 崇信县| 图们市| 宝丰县|