mysql percona xtradb cluster,Percona XtraDB Cluster 启动失败

江志业
2023-12-01

[root@localhost ~]# systemctl status mysql.service

● mysql.service - Percona XtraDB Cluster

Loaded: loaded (/usr/lib/systemd/system/mysql.service; enabled; vendor preset: disabled)

Active: activating (start-post) since Tue 2017-01-24 19:58:30 HKT; 23s ago

Process: 22536 ExecStopPost=/usr/bin/mysql-systemd stop-post (code=exited, status=0/SUCCESS)

Process: 22506 ExecStop=/usr/bin/mysql-systemd stop (code=exited, status=2)

Process: 22566 ExecStartPre=/usr/bin/mysql-systemd start-pre (code=exited, status=0/SUCCESS)

Main PID: 22609 (mysqld_safe);        : 22610 (mysql-systemd)

解决:发现mysqld_safe.pid属主不是mysql,将其改为mysql,恢复正常

vi /usr/lib/systemd/system/mysql.service

ExecStart=/usr/bin/mysqld_safe --basedir=/usr

vi /usr/lib/systemd/system/mysql@.service

ExecStart=/usr/bin/mysqld_safe --basedir=/usr ${EXTRA_ARGS}

vi /etc/sysconfig/mysql.bootstrap

EXTRA_ARGS=" --wsrep-new-cluster "

systemctl list-unit-files --type=service|grep mysql

 类似资料: