Google Plus

Howto- Install PostgreSQL in Ubuntu11.10/12.04 and LinuxMint

Written by Mel Kham on . Posted in Frequently Asked Questions, Linux Mint, Ubuntu

Queastion:  How to install PostgreSQL  on Ubuntu and Mint  ?

Answer:

1- Instal postgresql using the command:

sudo apt-get install postgresql  libpq-dev

2- Now change the postgres user password (as root):

sudo su -npostgres
postgres@Mint12 ~ $ psql -d postgres -U postgres psql (9.1.3) Type "help" for help.
postgres=#
postgres=# alter user postgres with password 'a'; ALTER ROLE postgres=# q

Restart The Server after this change

3-To install GUI client pgsql

sudo apt-get install pgadmin3

Run the  Client and stat creating  users  and  databases

 

For questions please refer to our Q/A forum at : http://ask.unixmen.com

Mel Kham

Founder of Unixmen, Living in Amsterdam. Am working in my free time to help people to understand the Opensource and to explain them in easy way how to make the fist steps to the the light. Working day and night with my Co-founder Zinovsky to keep this website live even with less resources.
  • Eusoubabdo

    what the fuck cyclop…

  • thirdshopping

    The article is very
    exhaustive,Thank you.

  • thirdshopping

    The article is very
    exhaustive,Thank you.

  • thirdshopping

    The article is very
    exhaustive,Thank you.

  • http://www.about.me/briankung Brian Kung

    Can you say specifically how to restart the postgres server?
    Also, I can’t tell what is output from postgres and what is a command to be issued.

    Thank you for the article, though.

  • pedrobl

    The second point’s commands are not displayed clearly:

    sudo su – postgres
    postgres@Mint12 ~ $ psql -d postgres -U postgres
    psql (9.1.3) Type “help” for help.
    postgres=#
    postgres=# alter user postgres with password ‘a’;
    ALTER ROLE
    postgres=# q
    Hope it comes out right… :P

  • pedrobl

    The second point’s commands are not displayed clearly:

    sudo su – postgres
    postgres@Mint12 ~ $ psql -d postgres -U postgres
    psql (9.1.3) Type “help” for help.
    postgres=#
    postgres=# alter user postgres with password ‘a’;
    ALTER ROLE
    postgres=# q
    Hope it comes out right… :P

Like us on Facebook

This week Top Posts

Write for us

Recent Comments

nombre apellido

|

Great tool. Thanks a lot

sobriquet

|

use the ‘browse’ option to select the startupconky.sh file from its location.

Snake

|

Wow, great. That’s what i’m waiting for too. I want to make DC with LDAP ( Active Directory alternative) and SAMBA on Ubuntu. :-)

Blawer

|

Thanks!!!!!!!!!!!!!!!!!! you rules!!! all the other “help” in google are useless… yours was very helpful. Thanks again

piCool

|

Great ! we have another another master trick :-)

 
IDG Tech Network
Copyright © 2008-2013 Unixmen.com .
Maintained by Anblik .