_覓 | 覦覈襦 | 豕蠏手 | 殊螳 | 譯殊碁 |
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;
鏤
|
螳襭 豺襦 螻讌螻 襷 襦 蟇一伎. |