Skip to content

Instantly share code, notes, and snippets.

@kylebrowning
Forked from CrackerJackMack/purge-cloudstack.sh
Created September 26, 2014 00:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save kylebrowning/7ea6b142d335052c3d23 to your computer and use it in GitHub Desktop.
Save kylebrowning/7ea6b142d335052c3d23 to your computer and use it in GitHub Desktop.
service cloudstack-management stop
mysql -ppassword -e 'drop database cloud'
mysql -ppassword -e 'drop database cloud_usage'
cloudstack-setup-databases cloud:password@localhost --deploy-as=root:password
rm -rf /var/log/cloud/management/*
cloudstack-setup-management
service cloudstack-management start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment