Created
April 17, 2012 02:54
-
-
Save leesmith/2403074 to your computer and use it in GitHub Desktop.
Ubuntu postgresql notes
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 database server | |
apt-get install postgresql libpq-dev | |
# install postgresql gem | |
gem install pg | |
# create postgres (super)user | |
createuser --superuser lsmith -U postgres | |
# change postgres user password | |
sudo -u postgres psql postgres | |
\password postgres | |
# create a database | |
sudo -u postgres createdb myDb | |
# database login | |
psql -d myDb -U username -W |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment