ubuntu postgresql

PostgreSQL is pronounced Post-Gres-Q-L.

sudo apt-get install postgresql-9.1

sudo gedit /etc/postgresql/9.1/main/postgresql.conf

sudo gedit /etc/postgresql/9.1/main/pg_hba.conf

local   all             postgres                                peer

->

local   all             postgres                                trust

重新启动postgresql进程服务
sudo /etc/init.d/postgresql restart

psql -U postgres

alter user postgres with password 'root';

\q

pgAdminIII

猜你喜欢

转载自feuyeux.iteye.com/blog/1714426