2. data 폴더 아래의 postgresql.conf 파일 변경
listen_addresses = 'localhost' => listen_addresses = '*'3. pg_hba.conf 파일 변경
port = 5432
host all all 0.0.0.0/0 trust4. PostgreSQL 시작
./pg_ctl -D $HOME/pgsql/data start
Great Architect & Artist
지혜 있는 자는 궁창의 빛과 같이 빛날 것이요 많은 사람을 옳은 데로 돌아오게 한 자는 별과 같이 영원토록 빛나리라 (단 12:3)
listen_addresses = 'localhost' => listen_addresses = '*'3. pg_hba.conf 파일 변경
port = 5432
host all all 0.0.0.0/0 trust4. PostgreSQL 시작
./pg_ctl -D $HOME/pgsql/data start
yum -y install zlib curl gcc g++ cpp gcc-c++ compat-gcc-34-g77 libxml2 libxml2-devel gd gd-devel freetype freetype-devel libpng libpng-devel libjpeg libjpeg-devel fontconfig fontconfig-devel mhash mhash-devel libmcrypt libmcrypt-devel openssl openssl-devel gmp gmp-devel flex libtermcap-devel ncurses-devel libc-client-devel bzip2-devel termcap libtermcap gdbm-devel readline-devel zlib-devel tcl-devel python-devel
./configure --prefix=$HOME/pgsql
make && make install
Initdb -D $HOME/pgsql/data
bin/pg_ctl -D $HOME/pgsql/data -l logfile start
bin/createdb database_name
bin/psql database_name
\q
Create table table_name (column_name varchar(10), mod_date TIMESTAMP....);
Alter table table_name ADD column_name varchar(10);
Alter table table_name rename column column_name to new_column_name;
Select * from pg_tables where schemaname='public';
Select * from information_schema.columns where table_name='table_name';
bin/createuser -s username -P
Enter password for new role : xxx
select * from pg_user;
Grant all on all tables in schema public to user_id;
댓글을 달아 주세요
댓글 RSS 주소 : http://www.yongbi.net/rss/comment/556