Database Setup - cattyman919/ApacheCloudStack_Kelompok9 GitHub Wiki
Installing MySQL Database in CloudStack Environment
Video Guideline
To set up MySQL database in your CloudStack environment, follow these steps:
-
Update Package Repository:
sudo apt update
-
Install MySQL Server:
sudo apt install mysql-server
-
Open MySQL Configuration File: Open MySQL configuration file on
/etc/mysql/mysql.conf.d/cloudstack.cnf
and make necessary changes if required depending on OS and installation location. Then, insert the following lines in themysqld
section:[mysqld] innodb_rollback_on_timeout=1 innodb_lock_wait_timeout=600 max_connections=350 log-bin=mysql-bin binlog-format = 'ROW'
-
Restart MySQL Services:
sudo systemctl restart mysql
-
Setup Database:
cloudstack-setup-databases cloud:cloud@localhost --deploy-as=root:<root password, or leave default blank if MySQL server has no root password> -i <cloudbr0 IP here>
Now you have successfully installed MySQL database in your CloudStack environment.