Complete Step wise isntallation of PgAdmin, User Creation


1. Follow installtion introductions from the link below:
Postgree Installation and Server plus Client Setup

2. Don’t forget to add this in your database.yml


host: localhost
port: 5432

3. Run this command


sudo -u postgres createuser --superuser $your_user_name

this will ask from you

Enter name of role to add:

4. Run this command

sudo -u postgres psql postgres

then run

\password you_user_name

This will ask

Enter new password:

and this

Enter it again:

5. Now you are good to go 🙂

Advertisements

I am Senior Software Engineer. I love reading, writing, sharing,developing, hiking, movies, trips, mountains, brooks, hills etc.

Tagged with: , , ,
Posted in postgres, Ubuntu

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

StackOverFlow
Categories
Archives
%d bloggers like this: