昨天直接把服务器关了,今天启动mysql集群中的节点时发现启动不了,直接闪退,查看报错如下:
It may not be safe to bootstrap the cluster from this node. It was not the last one to leave the cluster and may not contain all the updates. To force cluster bootstrap with this node, edit the grastate.dat file manually and set safe_to_bootstrap to 1
百度翻译:从这个节点引导集群可能不安全。它不是最后一个离开集群的,可能不包含所有更新。要强制使用此节点进行群集引导,请手动编辑grastate.dat文件,并将safe_设置为_bootstrap为1。
然后我试着启动其他节点,都是闪退
无奈只好去找grastate.dat文件,grastate.data文件在对应的卷_data文件夹下,找到后查看grastate.dat文件发现五个节点safe_bootstrap值全为0,将节点1的grastate.dat中的safe_to_bootstrap修改为1后保存,重启节点1
启动成功!