当前位置:网站首页>[MySQL Cluster fault recovery]
[MySQL Cluster fault recovery]
2022-07-23 17:16:00 【How could this happen!】
Find the node with offset
Restart the three control nodes at the same time , The database services of the three nodes are abnormal, and the cluster fails , The recovery method is as follows :
Find the node with offset
cat /var/lib/mysql/grastate.dat
Find the maximum value , First on the node of the vertex galera_new_cluster.
If all node values are -1, stay galera1 Node execution galera_new_cluster.
example :
The offset values are the same (-1)
So stop the database service at the node first systemctl stop mysql, Pay attention to check whether there is any mysql Process and monitoring , First kill fall mysql All monitors ( If you look at 4567 Port listening netstat -anp|grep 4567), This step is to avoid the abnormal stop of the database and residual processes .
Re execution #galera_new_cluster
The remaining nodes start mysq service
#systemctl start mariadb.service
#systemctl status mariadb.service
Verification cluster :
Execute... At any node mysql , Re execution SHOW GLOBAL STATUS LIKE ‘wsrep_%’;
wsrep_incoming_addresses If there are three nodes, the cluster will recover successfully
边栏推荐
猜你喜欢

通过SSH方式访问内网RDS+mysql

MySQL:不是MySQL问题的MySQL问题

Summary of after class homework of Microcomputer Principle and technical interface

Description and usage of Axi interconnect IP core

【30. n-皇后问题】

【Flutter -- 布局】弹性布局(Flex 和 Expanded)

程序环境和预处理

【31. 走迷宫(BFS)】

UPC 2022暑期个人训练赛第12场(B 组合数)

Add dependent jar packages to the project in the idea
随机推荐
VScode——代码、文件改动无法保存
CSR、SSR 与 SSG
What about the reason why GOM and GEE set up a black screen and the fact that individual equipment maps are not displayed?
软件质量体系之思
C语言基础篇 —— 2-4 指针的数据类型含义和强制类型转换的解析
[untitled]
软件配置 | Pycharm下载、安装及环境配置和卸载
通用分页实现
浏览器四大内核
Compose canvas pie chart effect drawing
Ie box model and standard box model
[web vulnerability exploration] SQL injection vulnerability
零基础怎么自学软件测试?十年测试老鸟最强软件测试学习路线图
IDEA中给项目添加依赖的jar包
同花顺上选择券商,网上客户经理开户安全吗
PMP每日一练 | 考试不迷路-7.23
PIP reports an error could not find a version that satisfies the... No matching distribution
二十四节气之大暑
微信小程序wx.hideLoading()会关闭toast提示框
详解一次SQL优化