Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #Login as root
  2. su -
  3. #Switch to postgres user
  4. su postgres
  5. #Connect to the DB
  6. psql
  7. #Create user
  8. CREATE USER username SUPERUSER INHERIT CREATEDB CREATEROLE;
  9. #Alter it`s password
  10. ALTER USER username PASSWORD 'password';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement