문서의 선택한 두 판 사이의 차이를 보여줍니다.
다음 판 | 이전 판 다음 판 양쪽 다음 판 | ||
dbms:pgsql [2007/01/16 00:43] mattabu 새로 만듬 |
dbms:pgsql [2007/11/13 15:12] 218.239.242.130 |
||
---|---|---|---|
줄 4: | 줄 4: | ||
==== on Debian Linux ==== | ==== on Debian Linux ==== | ||
- | < | + | < |
# apt-get install postgresql postgresql-client postgresql-dev libpg-perl libdbd-pg-perl | # apt-get install postgresql postgresql-client postgresql-dev libpg-perl libdbd-pg-perl | ||
</ | </ | ||
==== on Ubuntu Linux ==== | ==== on Ubuntu Linux ==== | ||
- | < | + | < |
# 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 | # 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 | ||
</ | </ | ||
===== Create User, Database ===== | ===== Create User, Database ===== | ||
- | < | + | < |
# su - postgres | # su - postgres | ||
# psql -d template1 | # psql -d template1 | ||
줄 20: | 줄 20: | ||
template1=# CREATE DATABASE 디비이름 WITH ENCODING=' | template1=# CREATE DATABASE 디비이름 WITH ENCODING=' | ||
</ | </ | ||
+ | |||
===== 계정으로 로그인할 수 있도록 연결설정 ===== | ===== 계정으로 로그인할 수 있도록 연결설정 ===== | ||
- | < | + | < |
# su - | # su - | ||
- | # cd / | + | # cd / |
# vi pg_hba.conf | # vi pg_hba.conf | ||
모두 주석으로 막고 아래만 남김 | 모두 주석으로 막고 아래만 남김 | ||
줄 30: | 줄 31: | ||
local | local | ||
local | local | ||
- | # / | + | # / |
# psql -d 디비이름 -U 아이디 -W | # psql -d 디비이름 -U 아이디 -W | ||
</ | </ | ||
===== DB List 보기 ===== | ===== DB List 보기 ===== | ||
- | < | + | < |
# psql -U postgres -l | # psql -U postgres -l | ||
List of databases | List of databases |