Uday's website
Published on Uday's website (https://uday.net)

Home > Postgres installation on Ubuntu

Postgres installation on Ubuntu [1]

Submitted by uday [2] on May 1, 2017 - 11:30pm

https://help.ubuntu.com/community/PostgreSQL [3]

1. Installing server locally

$sudo apt-get install postgresql postgresql-contrib

2. Administration using GUI tool pgAdmin3

$sudo apt-get install pgadmin3

3. Basic server setup

$sudo -u postgres psql postgres

\password postgres

Give password when prompted. Then type Control+D or \q to exit the posgreSQL prompt.

4. Create database

sudo -u postgres createdb <database-name>

5.Using pgadmin3 GUI tool

$pgadmin3

You can watch this video [4] and this video for installation of postgres + pgadmin4 [5]

Rating: 

 Valid XHTML 1.0 StrictCreative Commons LicenseVerbatim copying and redistribution of this entire page are permitted provided this notice is preserved. All content on this website including archives (including text, photographs, audio files and any other original work), unless otherwise noted, is licensed under a Creative Commons License or later.


Source URL:https://uday.net/postgres-installation-on-ubuntu

Links
[1] https://uday.net/postgres-installation-on-ubuntu [2] https://uday.net/user/1 [3] https://help.ubuntu.com/community/PostgreSQL [4] https://www.youtube.com/watch?v=9lq74SafVcw [5] https://www.youtube.com/watch?v=lX9uMCSqqko