Stuart ONE

          我有一頭小毛驢,我從來也不騎……

           

          Postgresql 8.0

          記錄一下昨天配置postgresql8.0的經過:
          1. Add an apt soucelist :
          deb http://sebastien.lardiere.free.fr/ ./postgresql8-i386/
          2. Install the postgres 8.0
          $apt-get update
          $apt-get install postgresql-8.0
          3. Now u can connect to postgres using:(template1 is the database name, postgres is the username)
          sudo su postgres psql template1
          4. Add a user of ur own:(-W means prompt for password to connect)
          $sudo su postgres
          $createuser username -W
          (decide whether this user can add new user and create database by input y/n to the questions)
          $exit
          5. Now u can login with ur newly created username and password using:
          $psql -U username -h localhost -d dbname
          (then u should input the password that u set when u created this user)
          6. Configuration File:
          /etc/postgresql/8.0/main/pg_hba.conf
          7. Postgres commands:
          \h --help with SQL commands
          \? --help with psql commands
          \q --quit
          \c dbname --connect to new database
          \d{t|i|s|v|S} --list tables/indexes/sequences/views/system tables (add "+" for more detail)
          \du --list users
          \l --list all databases(add "+" for more detail)

          posted on 2005-11-08 13:27 Stuart 閱讀(210) 評論(0)  編輯  收藏 所屬分類: DataBase


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


          網站導航:
           

          導航

          統計

          公告

          常用鏈接

          留言簿(3)

          隨筆分類

          隨筆檔案

          文章分類

          相冊

          BlogRoll

          Tech websites

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 灯塔市| 克山县| 吉安县| 象州县| 拉孜县| 惠安县| 民和| 松潘县| 西乌珠穆沁旗| 古田县| 盐亭县| 龙山县| 丁青县| 崇明县| 公安县| 星座| 静乐县| 五大连池市| 梧州市| 大方县| 云南省| 万山特区| 太白县| 岑巩县| 息烽县| 江永县| 安阳市| 万荣县| 磴口县| 仁布县| 临安市| 化隆| 太康县| 普洱| 海丰县| 绥德县| 土默特右旗| 富民县| 禄劝| 涞源县| 古田县|