Mysql mysql lost connection to server during query 问题解决方法
2014-08-28 11:43
597 查看
1. MySQL层面,需要配置一些参数 my.cnf 但是这里是linux下,我的windows下的文件是my.ini
wait_timeout = x 超时时间 如600秒
max_allowed_packet = y 最大允许数据量
适当增加x,y的值。
2. 可以直接在mysql中设置:
#show variables like '%timeout%';
#show variables like 'max_allowed_packet'
set global wait_timeout=60000;
#set global max_allowed_packet = 2*1024*1024
3.#60s
wait_timeout =60000
max_allowed_packet =2000M
wait_timeout = x 超时时间 如600秒
max_allowed_packet = y 最大允许数据量
适当增加x,y的值。
2. 可以直接在mysql中设置:
#show variables like '%timeout%';
#show variables like 'max_allowed_packet'
set global wait_timeout=60000;
#set global max_allowed_packet = 2*1024*1024
3.#60s
wait_timeout =60000
max_allowed_packet =2000M
相关文章推荐
- Mysql mysql lost connection to server during query 问题解决方法
- Mysql mysql lost connection to server during query 问题解决方法
- Mysql mysql lost connection to server during query 问题解决方法
- Mysql mysql lost connection to server during query 问题解决方法
- MySQL Workbench出现:Error Code: 2013. Lost connection to MySQL server during query的问题解决
- Mysql批量导入时 Lost connection to MySQL server during query解决方法
- 【转】解决Lost connection to MySQL server during query错误方法
- 解决Lost connection to MySQL server during query错误方法
- MySQL Workbench出现:Error Code: 2013. Lost connection to MySQL server during query的问题解决
- Mysql mysql lost connection to server during query 问题解决
- Lost connection to MySQL server during query问题解决方案
- 解决Lost connection to MySQL server during query错误方法
- mysql 由in引起的 [Err] 2013 - Lost connection to MySQL server during query 的解决
- Lost connection to MySQL server during query的解决
- MySQL之——MySQL远程连接丢失问题解决方法(Lost connection to MySQL server)
- MySQL远程连接丢失问题解决方法(Lost connection to MySQL server)
- Mysql 问题之Lost connection to MYSQL server during query
- MySQL Workbench:Error Code: 2013. Lost connection to MySQL server during query解决办法
- MySQL远程连接丢失问题解决方法(Lost connection to MySQL server)
- 解决:Ubuntu上,Python3 连接Win 7上的MySQL57数据库,报错误:(2013, ‘Lost connection to MySQL server during query’)