从节点启动
Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.
详细信息报
[root@localhost ~]# vi /etc/my.cnf
[root@localhost ~]# systemctl restart mysql
Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.
[root@localhost ~]# systemctl stop mysqld
[root@localhost ~]# systemctl start mysql
Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details.
[root@localhost ~]# systemctl status mysql.service
● mysql.service - Percona XtraDB Cluster
Loaded: loaded (/usr/lib/systemd/system/mysql.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since 二 2019-12-17 22:49:21 CST; 11s ago
Process: 31407 ExecStopPost=/usr/bin/mysql-systemd stop-post (code=exited, status=0/SUCCESS)
Process: 31377 ExecStop=/usr/bin/mysql-systemd stop (code=exited, status=2)
Process: 30288 ExecStartPost=/usr/bin/mysql-systemd start-post $MAINPID (code=exited, status=1/FAILURE)
Process: 30287 ExecStart=/usr/bin/mysqld_safe --basedir=/usr (code=exited, status=0/SUCCESS)
Process: 30121 ExecStartPre=/usr/bin/mysql-systemd start-pre (code=exited, status=0/SUCCESS)
Main PID: 30287 (code=exited, status=0/SUCCESS)
12月 17 22:49:21 localhost.localdomain mysql-systemd[30288]: ERROR! mysqld_safe with PID 30287 has already exited: FAILURE
12月 17 22:49:21 localhost.localdomain systemd[1]: mysql.service: control process exited, code=exited status=1
12月 17 22:49:21 localhost.localdomain mysql-systemd[31377]: WARNING: mysql pid file /var/run/mysqld/mysqld.pid empty or not readable
12月 17 22:49:21 localhost.localdomain mysql-systemd[31377]: ERROR! mysql already dead
12月 17 22:49:21 localhost.localdomain systemd[1]: mysql.service: control process exited, code=exited status=2
12月 17 22:49:21 localhost.localdomain mysql-systemd[31407]: WARNING: mysql pid file /var/run/mysqld/mysqld.pid empty or not readable
12月 17 22:49:21 localhost.localdomain mysql-systemd[31407]: WARNING: mysql may be already dead
12月 17 22:49:21 localhost.localdomain systemd[1]: Failed to start Percona XtraDB Cluster.
12月 17 22:49:21 localhost.localdomain systemd[1]: Unit mysql.service entered failed state.
12月 17 22:49:21 localhost.localdomain systemd[1]: mysql.service failed.
[root@localhost ~]# ^C
[root@localhost ~]#
在虚拟机中按照课程步骤没有什么问题 在生产就出现从启动不了