사용자 도구

사이트 도구


dbms:pgsql

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
dbms:pgsql [2007/11/13 14:22]
218.239.242.130
dbms:pgsql [2010/01/05 05:38] (현재)
starlits
줄 1: 줄 1:
 ====== PostgreSQL ====== ====== PostgreSQL ======
  
-===== Install ===== 
  
-==== on Debian Linux ==== +===== 설치 및 관리 ===== 
-<code> +  [[dbms:pgsql:install | PostgreSQL 설치 ]] 
-# apt-get install postgresql postgresql-client postgresql-dev libpg-perl libdbd-pg-perl +  [[dbms:pgsql:clientenv | PostgreSQL 클라언트 환경설정 ]]
-</code> +
- +
-==== on Ubuntu Linux ==== +
-<code bash> +
-# apt-get install postgresql-8.1 postgresql-client-8.1 postgresql-client-common postgresql-common postgresql-server-dev-8.1 postgresql-contrib-8.1 postgresql-plperl-8.1 postgresql-plpython-8.1 +
-</code> +
- +
-===== Create User, Database ===== +
-<code bash> +
-# su postgres +
-# psql -d template1 +
-template1=# CREATE USER 아디 WITH PASSWORD '비밀번호'; +
-template1=# CREATE DATABASE 디비이름 WITH ENCODING='utf-8' OWNER 아이디; +
-</code> +
- +
- +
-===== 계정으로 로그인할 수 있도록 연결설정 ===== +
-<code bash> +
-# su - +
-# cd /etc/postgresql/8.1/main +
-# vi pg_hba.conf +
-모두 주석으로 막고 아래만 남김 +
-host    all         all         0.0.0.0           0.0.0.0           password +
-local   all         postgres                                        trust +
-local   all         all                                             password +
-# /etc/init.d/postgresql-8.1 restart +
-# psql -d 디비이름 -U 아이디 -W +
-</code> +
- +
-===== DB List 보기 ===== +
-<code bash> +
-# psql -U postgres -l +
-          List of databases +
-    Name        Owner    | Encoding +
--------------+-------------+---------- +
- eecit       | eecit       | UNICODE +
- openwatcher | openwatcher | UNICODE +
- template0   | postgres    | UNICODE +
- template1   | postgres    | UNICODE +
-(4 rows) +
-</code>+
  
  
dbms/pgsql.1194931367.txt.gz · 마지막으로 수정됨: 2007/11/13 14:22 저자 218.239.242.130