galera+mairabd数据库异常报错处理集合(更新中······)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Nice_zou/article/details/79071073

++++++++++++++++++++++++++++++++++++++++++

3节点,其中两个已经正常起来并且运行,第3个节点启动报错,如下:

     关键词:WSREP: failed to open gcomm backend connection: 131: invalid UUID

进入该数据库节点/var/lib/mysql/目录,将文件gvwstate.dat移除(mv)掉。然后重新启动mairbd即可

++++++++++++++++++++++++++++++++++++++++++

     关键词:bind: Address already in use

查看mysql进程:ps  -ef | grep mysql,然后杀死该进程,在启动mariadb

++++++++++++++++++++++++++++++++++++++++++

关键词:It may not be safe to bootstrap the cluster from this node
数据库集群宕机,在运行/bin/galera_new_cluster启动第一个节点时报错,意思是该节点不是最后一个停掉的,不能安全启动
然后可以尝试在其他节点运行该命令;
如果报错都相同,则需要从3个节点中选取一个主节点,修改/var/lib/mysql/grastate.dat,把其中safe_to_bootstrap的值改为1即可。然后运行/bin/galera_new_cluster。其他节点依次启动


++++++++++++++++++++++++++++++++++++++++++

展开阅读全文

没有更多推荐了,返回首页