Skip to content

Instantly share code, notes, and snippets.

@romgapuz
Created April 4, 2017 13:47
Show Gist options
  • Save romgapuz/d84b116f29de39b3df6c74df0c0a14d9 to your computer and use it in GitHub Desktop.
Save romgapuz/d84b116f29de39b3df6c74df0c0a14d9 to your computer and use it in GitHub Desktop.
PostgreSQL Create User and Database and grant permission
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