Skip to content

Instantly share code, notes, and snippets.

@finist
Last active October 13, 2015 02:18
Show Gist options
  • Save finist/4123995 to your computer and use it in GitHub Desktop.
Save finist/4123995 to your computer and use it in GitHub Desktop.
postgres
export PATH=/usr/local/bin:$PATH
Start manually:
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
Stop manually:
pg_ctl -D /usr/local/var/postgres stop -s -m fast
pg_ctl -D /usr/local/var/postgres status
psql -d template1
CREATE USER miriam WITH PASSWORD 'sa';
ALTER USER miriam CREATEUSER CREATEDB;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment