_覓 | 覦覈襦 | 豕蠏手 | 殊螳 | 譯殊碁 |
FrontPage › PostgreSQLれ
|
|
[edit]
1 豕覯 れ企 #http://www.postgres.org
su cd /usr/local/src wget http://ftp.postgresql.org/pub/source/v9.2.2/postgresql-9.2.2.tar.gz [edit]
4 豢螳 #mkdir /usr/local/pgsql/data chown postgres /usr/local/pgsql/data adduser postgres chown -R postgres:postgres /usr/local/pgsql [edit]
5 蟆曙れ #su postgres cd $HOME vi .bash_profile PGDATA=/usr/local/pgsql/data PGLIB=/usr/local/pgsql/lib MANPATH=$MANPATH:/usr/local/pgsql/man PATH=$PATH:/usr/local/pgsql/bin export PGDATA PGLIB MANPATH PATH [edit]
6 ろ 覦 #/etc/init.d/postgresql start su - postgres initdb -D /usr/local/pgsql/data postgres -D /usr/local/pgsql/data >logfile 2>&1 createdb test psql test mydb=# select current_date;
鏤
|
瑚 覃企 覲 譴 蟆 譴 蟆 蠍企. (蟾) |