Skip to content

Instantly share code, notes, and snippets.

@creimers
Last active October 6, 2015 09:09
Show Gist options
  • Save creimers/a43b41b73815471a5e64 to your computer and use it in GitHub Desktop.
Save creimers/a43b41b73815471a5e64 to your computer and use it in GitHub Desktop.
create postgresql database
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