first install python-software-properties:
sudo apt-get install python-software-properties
now add repository and update apt.
sudo add-apt-repository ppa:pitti/postgresql
sudo apt-get update
now instal postgresql
sudo apt-get install postgresql-9.1 libpq-dev
Now change the postgres user password (still running as root):
su postgres
psql -d postgres -U postgres
alter user postgres with password 'a';
\q
To install GUI client pgsql
sudo apt-get install pgadmin3
original article: http://bit.ly/sUFCgb
It doesnt work!
ReplyDelete