Created
December 13, 2019 13:18
-
-
Save cy6erlion/02ed4af3b5eee2a1a6b74714492b3bef to your computer and use it in GitHub Desktop.
Create a Postgres 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 -c 'create database test;' | |
sudo -u postgres psql -c 'grant all privileges on database test to username;' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment