概述
[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
最后
以上就是辛勤路灯为你收集整理的mysql percona xtradb cluster,Percona XtraDB Cluster 启动失败的全部内容,希望文章能够帮你解决mysql percona xtradb cluster,Percona XtraDB Cluster 启动失败所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复