Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- sudo su - postgres (login to shell as postgres user).
- -- or use this:
- -- psql -U postgres -h localhost
- CREATE DATABASE somedatabase;
- CREATE USER mydbAdmin WITH PASSWORD 'something or nothing';
- GRANT ALL PRIVILEGES ON DATABASE somedatabase TO mydbAdmin;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement