版权声明:QQ:1312695213 https://blog.csdn.net/qq_35440040/article/details/88130571
1.日志报错如下
2019-03-04T10:10:55.921199Z 0 [ERROR] WSREP: failed to open gcomm backend connection: 110: failed to reach primary view (pc.wait_pri
m_timeout): 110 (Connection timed out)
at gcomm/src/pc.cpp:connect():159
2019-03-04T10:10:55.921216Z 0 [ERROR] WSREP: gcs/src/gcs_core.cpp:gcs_core_open():209: Failed to open backend connection: -110 (Conn
ection timed out)
2019-03-04T10:10:55.921320Z 0 [ERROR] WSREP: gcs/src/gcs.cpp:gcs_open():1514: Failed to open channel 'my_pxc_cluster' at 'gcomm://10
.161.48.91,10.161.48.92,10.161.48.93': -110 (Connection timed out)
2019-03-04T10:10:55.921334Z 0 [ERROR] WSREP: gcs connect failed: Connection timed out
2019-03-04T10:10:55.921342Z 0 [ERROR] WSREP: Provider/Node (gcomm://10.161.48.91,10.161.48.92,10.161.48.93) failed to establish conn
ection with cluster (reason: 7)
2019-03-04T10:10:55.921347Z 0 [ERROR] Aborting
2.启动报错如下
[root@DSJPT-23 data]# /etc/init.d/mysql start
Starting MySQL (Percona XtraDB Cluster).......................................The server quit without updating PID file (/data/mysql/mysqld.pid). [FAILED]
MySQL (Percona XtraDB Cluster) server startup failed! [FAILED]
2.上网查看有如下:
(1)selinux
(2)防火墙
(3)rm -rf /var/lock/subsys/mysql 并且 rm -rf galera.cache grastate.dat
均不行。
最后发现是wsrep_cluster_name三个节点不一样,修改后ok。