[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-7038?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14103635#comment-14103635
 ] 

Erik Weber commented on CLOUDSTACK-7038:
----------------------------------------

Just to confirm the bug, if you install cloudstack-management on a node without 
mysql-server, you get this when running cloudstack-setup-databases:

[root@localhost ~]# cloudstack-setup-databases cloud:password@localhost 
--deploy-as=root:password
Mysql user name:cloud                                                           
[ OK ]
Mysql user password:******                                                      
[ OK ]
Mysql server ip:localhost                                                       
[ OK ]
Mysql server port:3306                                                          
[ OK ]
Mysql root user name:root                                                       
[ OK ]
Mysql root user password:******                                                 
[ OK ]
Checking Cloud database files ...                                               
[ OK ]
Checking local machine hostname ...                                             
[ OK ]
Checking SELinux setup ...                                                      
[ OK ]
Detected local IP address as 10.0.2.15, will use as cluster management server 
node IP[ OK ]
Preparing /etc/cloudstack/management/db.properties                              
[ OK ]
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



> MySQL Client RPMs not a dependency in CS Packages
> -------------------------------------------------
>
>                 Key: CLOUDSTACK-7038
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-7038
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Install and Setup
>    Affects Versions: Future, 4.3.0, 4.4.0
>         Environment: Centos or RPM-based distro where MySQL installed on 
> separate server
>            Reporter: Adrian Lewis
>            Priority: Minor
>
> Perhaps simple enough to fix in docs but if anyone is installing from 
> packages on Centos, the 'mysql' client package is not installed as a 
> dependency which it should be. Likely not picked up in testing as those 
> installing the 'mysql-server' package will automatically get the client part 
> but for those using MySQL on a separate server, the management server will 
> not start.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to