Created
May 26, 2014 01:25
-
-
Save dfasolin/4e73c159d0d73538ff06 to your computer and use it in GitHub Desktop.
Login and Create Database in Postgres
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
# su - postgres | |
$ createdb mydb | |
$ psql -s mydb | |
# create user someuser password 'somepassword'; | |
# GRANT ALL PRIVILEGES ON DATABASE mydb TO someuser; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment