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

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 宜兴市| 鹤壁市| 巴林右旗| 仙居县| 寿光市| 盐山县| 紫阳县| 元阳县| 封丘县| 湟中县| 黑龙江省| 噶尔县| 房山区| 扎鲁特旗| 十堰市| 和平县| 云龙县| 河东区| 辉南县| 南京市| 古交市| 积石山| 盘山县| 吉林省| 武安市| 额尔古纳市| 甘泉县| 晴隆县| 英德市| 咸丰县| 大田县| 英吉沙县| 阳泉市| 开江县| 绩溪县| 长白| 柘荣县| 盐池县| 高邮市| 奎屯市| 伊春市|