Forked from ronanguilloux/elcaro_postgresql_create_user
Created
June 17, 2013 09:06
-
-
Save chanmix51/5795635 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 | |
$ sudo -i -u postgres | |
CREATE USER elcaro; | |
ALTER ROLE elcaro WITH CREATEDB; | |
CREATE DATABASE "ElCaro" OWNER elcaro; | |
ALTER USER elcaro WITH ENCRYPTED PASSWORD 'elcaro'; | |
\q | |
$ postgres@computer:~$ exit | |
$ cd /path/to/elcaro | |
$ psql -U elcaro -d ElCaro -f sql/structure.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment