Skip to content

Instantly share code, notes, and snippets.

@justyns
Forked from CrackerJackMack/purge-cloudstack.sh
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justyns/7cc50c3f26d3a1cfd1a1 to your computer and use it in GitHub Desktop.
Save justyns/7cc50c3f26d3a1cfd1a1 to your computer and use it in GitHub Desktop.
/etc/init.d/cloud-management stop
mysql -ppassword -e 'drop database cloud'
mysql -ppassword -e 'drop database cloud_usage'
cloud-setup-databases cloud:password@localhost --deploy-as=root:password
rm -rf /var/log/cloud/management/*
cloud-setup-management
/etc/init.d/cloud-management start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment