Created
October 21, 2020 18:39
-
-
Save mostafa-asg/2dff5a934ea6d1329717fd18cd6ff9a5 to your computer and use it in GitHub Desktop.
Add postgres user to the new database
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
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