Last active
August 29, 2015 14:07
-
-
Save ealden/75cbda4aeed13158c525 to your computer and use it in GitHub Desktop.
PostgreSQL user/database config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
createuser -P dbadmin | |
createuser -P dbuser | |
createdb -O dbadmin db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GRANT USAGE ON SCHEMA public TO dbuser; | |
GRANT SELECT, INSERT, UPDATE ON ALL TABLES IN SCHEMA public TO dbuser; | |
GRANT USAGE ON ALL SEQUENCES IN SCHEMA public TO dbuser; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment