Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. -- sudo su - postgres (login to shell as postgres user).
  2. -- or use this:
  3. -- psql -U postgres -h localhost
  4. CREATE DATABASE somedatabase;
  5. CREATE USER mydbAdmin WITH PASSWORD 'something or nothing';
  6. GRANT ALL PRIVILEGES ON DATABASE somedatabase TO mydbAdmin;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement