Created
April 4, 2017 13:47
-
-
Save romgapuz/d84b116f29de39b3df6c74df0c0a14d9 to your computer and use it in GitHub Desktop.
PostgreSQL Create User and Database and grant permission
This file contains hidden or 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
CREATE USER username WITH PASSWORD 'password'; | |
CREATE DATABASE database_name; | |
GRANT ALL PRIVILEGES ON DATABASE database_name to username; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment