Blog Ronald

Welcome to my Blog

instalasi postgesql 8-3 di ubuntu 8.0.4

Posted by T. Ronald S. on October 13, 2008

berikut langkah-langkah instalasinya:
#sudo apt-get install postgresql-8.3
setelah terinstall, ada 2 file yg perlu di edit:
1. #sudo nano /etc/postgresql/8.3/main/postgresql.conf
listen_addresses = ‘*’
2. #sudo nano /etc/postgresql/8.3/main/pg_hba.conf
ubah: local all all ident sameuser
menjadi: local all all trust
tambahkan:
host all all 0.0.0.0 0.0.0.0 trust

kemudian jangan lupa merestart service nya:
#sudo /etc/init.d/postgesql-8.3 restart
langkah berikutnya adalah mengubah password postgres, lakukan langkah2 berikut:
#sudo -u postgres psql template1

ALTER USER postgres WITH PASSWORD ‘your-password’
\q
kemudian restart lagi servicenya:
#sudo /etc/init.d/postgesql-8.3 restart
untuk software client, saya lebih memilih pgAdmin III

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>