Create user in PostgreSQL

Method 1

To create user, become user “postgres” with

now run

Method 2

You can run following commands in psql prompt

https://www.postgresql.org/docs/8.0/static/sql-createuser.html

PostgreSQL