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


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


          網站導航:
           

          導航

          統計

          公告

          常用鏈接

          留言簿(3)

          隨筆分類

          隨筆檔案

          文章分類

          相冊

          BlogRoll

          Tech websites

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 大厂| 巴林左旗| 项城市| 海兴县| 乌海市| 拉萨市| 江西省| 永和县| 辉县市| 哈巴河县| 新泰市| 三穗县| 吉安县| 重庆市| 江阴市| 柘荣县| 穆棱市| 孝昌县| 佛冈县| 灌阳县| 怀远县| 滨州市| 华安县| 包头市| 平昌县| 保山市| 博罗县| 驻马店市| 庆安县| 阳曲县| 彩票| 偃师市| 和田县| 鄢陵县| 泽州县| 沂源县| 荔波县| 右玉县| 宜春市| 临沧市| 丹寨县|