Installing postgressql

$ sudo apt-get install postgresql

Installing pgadmin3

$ sudo apt-get install pgadmin3

To set password to the user postgres

$ sudo -u postgres psql postgres

postgres=# \password postgres

Create new user

$ sudo -u postgres createuser –superuser $USER

Set the password to the created user

$ sudo -u postgres psql

postgres=# \password $USER

Create database and go inside the database

$ createdb test

$ psql test

test=#


Advertisements