Created
June 27, 2013 22:57
-
-
Save josemarluedke/5881143 to your computer and use it in GitHub Desktop.
Install and create user on PostgreSQL
This file contains hidden or 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 apt-get install postgresql libpq-dev postgresql-contrib | |
| $ sudo -u postgres createuser desired_user | |
| $ cd /etc/init.d/ | |
| $ sudo -u postgres psql template1 | |
| template1=# ALTER USER desired_user WITH PASSWORD 'desired_password'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment