pxc 启动报错 The server quit without updating PID file
1 2 3 4 | /etc/init.d/mysql start Starting MySQL (Percona XtraDB Cluster)................................................................................................................................................................................................................................................................................................................................../usr/bin/mysqld_safe: line 203: 7028 Killed nohup /usr/sbin/mysqld --basedir=/usr --datadir=/home --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --wsrep-provider=/usr/lib64/libgalera_smm.so --log-error=/data/logs/mysql/mysql_error.log --open-files-limit=65535 --pid-file=/home/mysql.pid --socket=/home/mysql.sock --port=3306 --wsrep_start_position=***********:85906395 < /dev/ null > /dev/ null 2>&1 ERROR! The server quit without updating PID file (/home/mysql.pid). ERROR! MySQL (Percona XtraDB Cluster) server startup failed! |
查看日志
1 2 3 | 2022-09-05 03:54:12 22485 [Note] WSREP: Full re-merge of primary cf7f1677-2c8e-11ed-a43f-67082de5e598 found: 1 of 1. 2022-09-05 03:54:12 22485 [ERROR] WSREP: gcs/src/gcs_group.cpp:group_post_state_exchange():322: Reversing history: 395 -> 866, this member has applied 529 more events than the primary component.Data loss is possible. Aborting. 2022-09-05 03:54:12 22485 [Note] WSREP: /usr/sbin/mysqld: Terminated. |
解决删除 /home/data/grastate.dat 文件并重新启动它,参考https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=hanajava&logNo=220795689922
第一个节点启动
/etc/init.d/mysqld bootstrap-pxc
第二个节点启动,同步时会重新用xtrbackup恢复数据
/etc/init.d/mysql start
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· winform 绘制太阳,地球,月球 运作规律
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· 上周热点回顾(3.3-3.9)
· AI 智能体引爆开源社区「GitHub 热点速览」
· 写一个简单的SQL生成工具