Created
February 17, 2015 08:03
-
-
Save shilov/28ebee32bf0fb21a0160 to your computer and use it in GitHub Desktop.
Drop all databases in Postgres by removing the current data cluster and recreating it
This file contains hidden or 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
sudo pg_dropcluster --stop 9.4 main && sudo pg_createcluster 9.4 main && sudo pg_ctlcluster 9.4 main start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment