美文网首页
Percona XtraDB Cluster 启动失败

Percona XtraDB Cluster 启动失败

作者: ittony | 来源:发表于2017-06-14 09:37 被阅读0次

    [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

    相关文章

      网友评论

          本文标题:Percona XtraDB Cluster 启动失败

          本文链接:https://www.haomeiwen.com/subject/duezbttx.html