-
Notifications
You must be signed in to change notification settings - Fork 1
Postgres Setup
Rajesh Khadka edited this page Nov 20, 2019
·
3 revisions
Prerequisites
Must installed the Postgres on your local machine.
After successful installation of the Postgres, follow these steps:
Postgres consist of postgres as a default admin user with all privileges in the database. You can access that user by using the command in Postgres shell.
sudo -u postgres psqlsudo -u postgres createuser <username>sudo -u postgres createdb <dbname>sudo -u postgres psql
psql=# alter user <username> with encrypted password '<password>';psql=# grant all privileges on database <dbname> to <username>;