...
- Server management
- sudo /etc/init.d/postgresql-8.3 stop
- sudo /etc/init.d/postgresql-8.3 start
- sudo /etc/init.d/postgresql-8.3 restart
- Connect to a database
- psql -U postgres template1
- Create user
- Login using postgres
- Run SQL:
- create user [userid] WITH CREATEDB;
- GRANT USAGE ON LANGUAGE plpgsql TO tdar;
- Create database
- Login with [userid]: psql -U [userid] template1
- Run SQL: create database [db1]