Help!
I am setting up cloudstack management on one server with MySQL installed on a
second server, both on CentOS. I have followed the installation material and
setup mysql and edited the my.cnf file as well, but when I go back to the
management server to run the cloudstack-setup-databases script pointing to the
mysql server I get an error at the very end.
Error:
/bin/sh: mysql: command not found
Below is exactly what happens when I run the script on the management server. I
have already set SELinux to permissive and edited the iptables on both servers
ot open the port 3306 as well...
Thanks in advance!
Ethan Gillani
[root@CloudstackManagement setup]# cloudstack-setup-databases
'cloud:password'@10.0.3.11 --deploy-as='root:password'
Mysql user name:cloud
Mysql user password:password
Mysql server ip:10.0.3.11
Mysql server port:3306
Mysql root user name:root
Mysql root user password:password
Checking Cloud database files ...
Checking local machine hostname ...
Checking SELinux setup ...
Detected local IP address as 10.0.3.10, will use as cluster management server n
Preparing /etc/cloudstack/management/db.properties
Applying /usr/share/cloudstack-management/setup/create-database.sql
We apologize for below error:
***************************************************************
Encountering an error when executing mysql script
----------------------------------------------------------------------
table:
/usr/share/cloudstack-management/setup/create-database.sql
Error:
/bin/sh: mysql: command not found
Sql parameters:
{'passwd': 'password', 'host': '10.0.3.11', 'user': 'root', 'port': 3306}
----------------------------------------------------------------------
***************************************************************
Please run:
cloud-setup-database -h
for full help
[root@CloudstackManagement setup]#