mysql 故障

Posted scu_2008_hike

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql 故障相关的知识,希望对你有一定的参考价值。

The mysql server has gone away (error 2006) has two main causes and solutions:

  • Server timed out and closed the connection. To fix, check that “wait_timeout” mysql variable in your my.cnf configuration file is large enough.
  • Server dropped an incorrect or too large packet. If mysqld gets a packet that is too large or incorrect, it assumes that something has gone wrong with the client and closes the connection. To fix, you can increase the maximal packet size limit “max_allowed_packet” in my.cnf file, eg. set max_allowed_packet = 128M, then sudo /etc/init.d/mysql restart.

 

以上是关于mysql 故障的主要内容,如果未能解决你的问题,请参考以下文章

MySQL DBA日常故障处理----主从延迟故障(171020)

MySQL Cluster SQL 节点故障转移

MySQL MHA高可用集群部署及故障切换

故障MySQL主从同步故障-Slave_SQL_Running: No

企业案例 故障修复mysql主从故障解决过程

MySQL MHA高可用集群部署及故障切换