Mysql Communications link failure 终级解决办法

1、编辑my.cnf  在[mysqld] 下面添加

  wait_timeout=31536000
  interactive_timeout=31536000

2、在连接URL上添加参数:&autoReconnect=true&failOverReadOnly=false 

  

  转载 https://www.cnblogs.com/netcorner/p/4346181.html

猜你喜欢

转载自www.cnblogs.com/xdcr/p/11090605.html