0
点赞
收藏
分享

微信扫一扫

mysql lost connection to server during query

J简文 2022-08-17 阅读 51

vim /etc/mysql/mysql.conf.d/mysqld.cnf

[mysqld]
#3600000/1000=3600秒=1小时
wait_timeout =3600000
#2G缓冲
max_allowed_packet =2048M


service mysql restart

 以上为ubuntu设置方法,mysql5.7.20-0ubuntu0.17.04.1

举报

相关推荐

0 条评论