mysql server 自动断开的问题

Posted 不再蒙查查

tags:

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

今天发现mysql的一个问题,当跑update语句的时候,mysql 服务会自动断掉,无论用 phpmyadmin, navicat , mysql workbench 甚至用 mysql命令行效果一样。

我的环境是 : windows server 2008 R2 + mysql5.7.18-win64。

mysql 日志显示:

06:36:18 UTC - mysqld got exception 0xc000001d ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
Attempting to collect some information that could help diagnose the problem.
As this is a crash and something is definitely wrong, the information
collection process might fail.

key_buffer_size=8388608
read_buffer_size=8192
max_used_connections=2
max_threads=151
thread_count=2
connection_count=2
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 49892 K  bytes of memory
Hope that‘s ok; if not, decrease some variables in the equation.

Thread pointer: 0xa066480
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
7fef5755c01    MSVCR120.dll!pow()
13f8a62aa    [email protected]@[email protected]@[email protected]@@Z()
13fe68107    [email protected][email protected][email protected]@[email protected][email protected]@[email protected][email protected]@@@@[email protected]@[email protected]@@@[email protected]()
13fe5e059    [email protected][email protected]@QEAAXXZ()
13fe6a3f5    [email protected]@[email protected]@[email protected][email protected]@@[email protected][email protected]@[email protected]@[email protected]@[email protected]_S[email protected]@@Z()
13fb18ce7    [email protected]@[email protected]@[email protected]@@@@[email protected]@[email protected]()
13fb1afb0    [email protected][email protected]@[email protected]@[email protected]()
13fb172ea    [email protected][email protected]@[email protected]@@Z()
13f8d72d5    [email protected]@[email protected]@[email protected]()
13f8d9bf3    [email protected]@[email protected]@[email protected]@@Z()
13f8d2c93    [email protected]@[email protected]@[email protected]@[email protected]@@Z()
13f8d3cda    mysqld.[email protected]@[email protected]@@Z()
13f87a80c    mysqld.exe!handle_connection()
1402d5932    [email protected][email protected][email protected]@[email protected]@@[email protected]@[email protected]()
13ffe7e6c    mysqld.exe!my_thread_once()
7fef56e4f7f    MSVCR120.dll!_beginthreadex()
7fef56e5126    MSVCR120.dll!_endthreadex()
7703f34d    kernel32.dll!BaseThreadInitThunk()
77172cc1    ntdll.dll!RtlUserThreadStart()

Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (e881f30): UPDATE `system_lane_type` SET `lane_type`=‘lane8‘ WHERE (`lane_type_id`=‘3‘)
Connection ID (thread ID): 3
Status: NOT_KILLED

The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.

  中间经过多种尝试,最后经过 google  google google 查到解决方法,安装 2008 sp1的补丁就可以了,微软官方下载:windows6.1-KB976932-X64.exe

以下是搜索到的2篇文章:

https://bugs.mysql.com/bug.php?id=81538

http://www.talkwithtrend.com/Question/405405

以上是关于mysql server 自动断开的问题的主要内容,如果未能解决你的问题,请参考以下文章

解决MySQL8小时自动断开连接的问题(DBCP配置)

MySql连接空闲8小时自动断开引起的问题

MySQLdb 不活跃连接自动断开的解决方法

WebSocket发送消息后自动断开的问题

WebSocket发送消息后自动断开的问题

MySQL解决8小时内没有进行数据库操作, mysql自动断开连接, 需要重启tomcat的问题