Created
October 16, 2015 08:18
-
-
Save the-teacher/505ff06a525286afdcd4 to your computer and use it in GitHub Desktop.
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 postgresql-client postgresql-contrib libpq-dev postgresql-server-dev-9.1 pgadmin3 -y | |
sudo -u postgres psql postgres | |
CREATE ROLE "ADMIN_NAME" PASSWORD 'qwerty' SUPERUSER CREATEDB CREATEROLE INHERIT LOGIN; | |
\q | |
sudo /etc/init.d/postgresql restart | |
psql postgres ADMIN_NAME | |
SELECT version(); | |
SELECT datname FROM pg_database; | |
\q |
hakushu-publishing
commented
Oct 16, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment