Created
July 18, 2013 07:04
-
-
Save jpetitcolas/6027257 to your computer and use it in GitHub Desktop.
Install PostGreSQL
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
# Install PostGreSQL | |
sudo apt-get install postgresql | |
# Create user | |
sudo -i -u postgres | |
psql | |
CREATE USER username; | |
ALTER ROLE username WITH CREATEDB; | |
# Create database | |
CREATE DATABASE dbname OWNER username; | |
ALTER USER username WITH ENCRYPTED PASSWORD 'password'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment