Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo service postgresql start
- sudo sudo -u postgres psql
- CREATE USER username SUPERUSER PASSWORD 'password';
- \q
- echo "export USERNAME=username" >> ~/.profile
- echo "export PASSWORD=password" >> ~/.profile
- . ~/.profile
- sudo sudo -u postgres psql
- UPDATE pg_database SET datistemplate = FALSE WHERE datname = 'template1';
- DROP DATABASE template1;
- CREATE DATABASE template1 WITH TEMPLATE = template0 ENCODING = 'UNICODE';
- UPDATE pg_database SET datistemplate = TRUE WHERE datname = 'template1';
- \c template1
- VACUUM FREEZE;
- \q
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement