Mysql 问题之Lost connection to MYSQL server during query
2014-10-30 10:49
561 查看
http://dev.mysql.com/doc/refman/5.0/en/error-lost-connection.html
There are three likely causes for this error message.
Usually it indicates network connectivity trouble and you should check the condition of your network if this error occurs frequently. If the error message includes
“during query,” this is probably the case you are experiencing.
Sometimes the “during query” form happens when millions of rows are being sent as part of one or more queries. If you know that this is happening, you should try increasing
More rarely, it can happen when the client is attempting the initial connection to the server. In this case, if your
experiencing this more uncommon cause by using
“reading authorization packet” as part of the error message; if so, that also suggests that this is the solution that you need.
If the cause is none of those just described, you may be experiencing a problem with
There are three likely causes for this error message.
Usually it indicates network connectivity trouble and you should check the condition of your network if this error occurs frequently. If the error message includes
“during query,” this is probably the case you are experiencing.
Sometimes the “during query” form happens when millions of rows are being sent as part of one or more queries. If you know that this is happening, you should try increasing
net_read_timeoutfrom its default of 30 seconds to 60 seconds or longer, sufficient for the data transfer to complete.
More rarely, it can happen when the client is attempting the initial connection to the server. In this case, if your
connect_timeoutvalue is set to only a few seconds, you may be able to resolve the problem by increasing it to ten seconds, perhaps more if you have a very long distance or slow connection. You can determine whether you are
experiencing this more uncommon cause by using
SHOW GLOBAL STATUS LIKE 'Aborted_connects'. It will increase by one for each initial connection attempt that the server aborts. You may see
“reading authorization packet” as part of the error message; if so, that also suggests that this is the solution that you need.
If the cause is none of those just described, you may be experiencing a problem with
BLOBvalues that are larger than
max_allowed_packet, which can cause this error with some clients. Sometime you may see an
ER_NET_PACKET_TOO_LARGEerror, and that confirms that you need to increase
max_allowed_packet.
相关文章推荐
- MySQL 导入的问题 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 问题解决方法
- Mysql mysql lost connection to server during query 问题解决方法
- Mysql mysql lost connection to 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 问题解决方法
- Mysql mysql lost connection to server during query 问题解决方法
- Mysql mysql lost connection to server during query 问题解决方法
- MySQL存盘阻塞“Lost connection to MySQL server during query”
- Procedure execution failed 2013 - Lost connection to MySQL server during query
- lost connection to mysql server during query
- mysql5.5一插入数据就提示ERROR 2013 (HY000): Lost connection to MySQL server during query
- MySQL error 2013 : Lost connection to MySQL server during query
- Error NO.2013 Lost connection to Mysql server during query
- PHP+MYSQL出错(#2013 - Lost connection to MySQL server during query)
- 2013 lost connection to mysql server during query
- MySQL服务器已离线错误 Lost connection to MySQL server during query
- MySQL升级后:ERROR 2013 (HY000): Lost connection to MySQL server during query