Skip to content

Instantly share code, notes, and snippets.

@xcooper
Last active August 29, 2015 14:22
Show Gist options
  • Save xcooper/5c592e376acfb490bdee to your computer and use it in GitHub Desktop.
Save xcooper/5c592e376acfb490bdee to your computer and use it in GitHub Desktop.
PostgreSQL initdb
$ su
# postgresql-setup initdb
# su - postgres
$ psql
\password postgres
$ echo "host all all 192.168.133.0/24 md5" >> /var/lib/pgsql/data/pg_hba.conf
$ exit
# service postgres start
# exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment