mysqld_multi centos6.9 无法自启动求助
下面是通过chkconfig配置多实例自动启动的过程,重启主机mysql实例无法自动启动,请各位大佬帮忙排错。谢谢。
[root@mysql1 ~]# uname -a
Linux mysql1 2.6.32-696.el6.x86_64 #1 SMP Tue Mar 21 19:29:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
[root@mysql1 ~]# cp /usr/local/mysql/support-files/mysqld_multi.server /etc/rc.d/init.d/mysqld_multi
[root@mysql1 ~]# chkconfig --add mysqld_multi
[root@mysql1 ~]# chkconfig --list |grep -i mysql
mysqld_multi 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@mysql1 ~]# service mysqld_multi start
WARNING: my_print_defaults command not found.
Please make sure you have this command available and
in your path. The command is available from the latest
MySQL distribution.
ABORT: Can't find command 'my_print_defaults'.
This command is available from the latest MySQL
distribution. Please make sure you have the command
in your PATH.
[root@mysql1 ~]# which my_print_defaults
/usr/local/mysql/bin/my_print_defaults
下面是通过命令启动多实例的过程:
[root@mysql1 ~]# /etc/init.d/mysqld_multi report
Reporting MySQL servers
MySQL server from group: mysqld1 is not running
MySQL server from group: mysqld2 is not running
[root@mysql1 ~]# /etc/init.d/mysqld_multi start
[root@mysql1 ~]# /etc/init.d/mysqld_multi report
Reporting MySQL servers
MySQL server from group: mysqld1 is running
MySQL server from group: mysqld2 is running