Last active
October 6, 2015 09:09
-
-
Save creimers/a43b41b73815471a5e64 to your computer and use it in GitHub Desktop.
create postgresql 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 su - postgres | |
createdb mydb | |
createuser -P | |
psql | |
GRANT ALL PRIVILEGES ON DATABASE mydb TO myuser; | |
\q | |
su - appUser | |
postgres://username:password@localhost:5432/mydb | |
mysql://username:password@localhost:3306/mydb | |
export DATABASE_URL=postgres://username:password@localhost:5432/mydb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment