Created
February 14, 2015 08:25
-
-
Save dufferzafar/a0286a6c205831478e7a to your computer and use it in GitHub Desktop.
Reset Postgres (Ubuntu 14.04)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
sudo service postgresql stop | |
sudo pg_dropcluster 9.1 main | |
sudo pg_createcluster 9.1 main | |
sudo pg_ctlcluster 9.1 main start | |
sudo service postgresql start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment