Skip to content

Instantly share code, notes, and snippets.

@marcellobenigno
Created February 8, 2013 16:54
Show Gist options
  • Save marcellobenigno/4740314 to your computer and use it in GitHub Desktop.
Save marcellobenigno/4740314 to your computer and use it in GitHub Desktop.
Iniciar o PostgreSQL quando ele dá pau
sudo mkdir -p /usr/local/pgsql/data
sudo chown -R postgres:postgres /usr/local/pgsql/
sudo su - posgresql
cd /usr/lib/postgresql/8.2/bin/
./initdb -D /usr/local/pgsql/data
./postgres -D /usr/local/pgsql/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment