Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save thuongdinh-agilityio/bb78329e8c78c5d246b2 to your computer and use it in GitHub Desktop.
Save thuongdinh-agilityio/bb78329e8c78c5d246b2 to your computer and use it in GitHub Desktop.
postgresql_create_database_grant_user
sudo -u postgres psql -tAc "CREATE DATABASE jerry;"
sudo -u postgres psql -tAc "GRANT ALL PRIVILEGES ON DATABASE jerry to tom;"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment