Skip to content

Instantly share code, notes, and snippets.

@mostafa-asg
Created October 21, 2020 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mostafa-asg/2dff5a934ea6d1329717fd18cd6ff9a5 to your computer and use it in GitHub Desktop.
Save mostafa-asg/2dff5a934ea6d1329717fd18cd6ff9a5 to your computer and use it in GitHub Desktop.
Add postgres user to the new database
sudo -u postgres psql postgres
CREATE DATABASE {db_name}
\password postgres (OPTIONAL)
GRANT ALL PRIVILEGES ON DATABASE {db_name} to postgres;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment