Run install.sh
again and choose "D" to install MySQL
# ./install.sh
Setting up the temporary repository...
Cleaning Yum cache...
Loaded plugins: fastestmirror
11 metadata files removed
Welcome to the Cloud.com CloudStack Installer. What would you like to do?
A) Install the Agent
S) Install the Usage Monitor
D) Install the database server
U) Upgrade the CloudStack packages installed on this computer
R) Stop any running CloudStack services and remove the CloudStack packages from this computer
Q) Quit
> D
Edit the MySQL configuration (/etc/my.cnf
) and insert the following lines in the [mysqld] section. You can put these lines below the datadir line.
innodb_rollback_on_timeout=1
innodb_lock_wait_timeout=600
max_connections=350
Restart the MySQL service and configure it to start on boot
# service mysqld restart
# chkconfig mysqld on
Use the following script to create the cloud user on the database with a password of your choice. This script deploys the database using the credentials in the deploy-as parameters. By default on RHEL/CentOS/Fedora MySQL is installed with no root password. If you have set a password you will need to postpend that to the deploy-as parameter as in "--deploy-as=root:password
# cloud-setup-databases cloud:dbpassword
@localhost --deploy-as=root