Skip to content

Instantly share code, notes, and snippets.

@CrackerJackMack
Created June 22, 2012 12:14
Show Gist options
  • Save CrackerJackMack/2972401 to your computer and use it in GitHub Desktop.
Save CrackerJackMack/2972401 to your computer and use it in GitHub Desktop.
PEW PEW reset cloudstack as a fresh install
/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
@xuanyuanaosheng
Copy link

for cloudstack 4.1 on *rpm compatible

# systemctl stop cloudstack-management.service

# mysql -e 'drop database cloud'

# mysql -e 'drop database cloud_usage'

# cloudstack-setup-databases cloud:password@localhost --deploy-as=root:12345

# cloudstack-setup-management

# systemctl start cloudstack-management.service

# systemctl status cloudstack-management.service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment