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][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    [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

时间: 2024-07-29 08:55:55

mysql server 自动断开的问题的相关文章

mysql解决自动断开8小时未曾用过的链接

今天有运维的同事反映,发布关键词不太稳定,点了没反应.就去线上看了一下日志,发现数据库没有链接,就查了一下问题 关于mysql自动断开的问题研究结果如下,在mysql中有相关参数设定,当数据库连接空闲一定时间后,服务器就 会断开等待超时的连接: 同一时间,这两个参数只有一个起作用.到底是哪个参数起作用,和用户连接时指定的连接参数相关,缺省情况下是使用 wait_timeout.我建议是将这两个参数都修改,以免引起不必要的麻烦. 2.修改参数 这两个参数的默认值是8小时.我测试过将这两个参数改为0

windows server 2003断开远程之后自动注销用户

windows server 2003断开远程之后自动注销用户 2011-07-30 09:42:52     我来说两句      收藏    我要投稿 最近一台服务器老是断开远程之后过没多久就自动注销(是由nagios报警explorer.exe得出结论),后查看系统日志信息,确实为注销. 解决办法如下: 开始-->运行-->gpedit.msc 计算机配置->管理模板->Windows组件->终端服务->会话 把"为断开的会话设置时间限制"改为

mysql连接的空闲时间超过8小时后 MySQL自动断开该连接解决方案 详细出处参考:http://www.jb51.net/article/32284.htm

MySQL 的默认设置下,当一个连接的空闲时间超过8小时后,MySQL 就会断开该连接,而 c3p0 连接池则以为该被断开的连接依然有效.在这种情况下,如果客户端代码向 c3p0 连接池请求连接的话,连接池就会把已经失效的连接返回给客户端,客户端在使用该失效连接的时候即抛出异常 解决这个问题的办法有三种: 1. 增加 MySQL 的 wait_timeout 属性的值. 修改 /etc/mysql/my.cnf文件,在 [mysqld] 节中设置: # Set a connection to w

Windows Server服务器端MySQL数据库自动备份

1.给root账户授权所有sql权限 grant all privileges on *.* to [email protected]"%" identified by "."; flush privileges; 2.建立bat批处理文件 @echo off set path=%path%;D:\Program Files\MySQL\MySQL Server 5.5\bin set y=%date:~0,4% set m=%date:~5,2% set d=%d

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

一.问题描述 ? 最近遇到了一个奇怪的MySql数据库问题,好几次前一天晚上历史数据还正常存储,第二天早上来了看实时数据存储还正常,历史数据不存储了.找了好久也没找到问题.后来仔细想了想,历史数据设置了变化才存储,是不是数据一直不变,就一直没有往数据库写数据,导致MySql的连接太久不用自动断开了.然后就百度了一下,Mysql空闲连接有效时长,一看都说是8个小时就自动断开了.嗯,有点感觉了,应该就是这个原因. 二.问题排查 根据查到的资料查看MySql 有两个参数,可以设定空闲连接的有效时长,分

解决Can't connect to MySQL server on 'localhost' (10048)

解决Can't connect to MySQL server on 'localhost' (10048) 您使用的是Windows操作系统,此错误与一个注册表键值TcpTimedWaitDelay有关.减小Windows中TcpTimedWaitDelay时间可解决此类问题,默认情况下为240(未设置的情况下也是这个数值) 此项设置需要到注册表如下位置进行设置HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Tcpip/Paramete

解决MySQL server has gone away问题的两种有效办法

最近做网站有一个站要用到WEB网页采集器功能,当一个PHP脚本在请求URL的时候,可能这个被请求的网页非常慢慢,超过了mysql的 wait-timeout时间,然后当网页内容被抓回来后,准备插入到MySQL的时候,发现MySQL的连接超时关闭了,于是就出现了“MySQL server has gone away”这样的错误提示. 对于这个错误提示我百度了一下,关于产生这个错误的原因,比如这篇文章MySQL server has gone away报错原因分析及解决办法,里面说了出现这个问题的几

mysql_ping()以及MYSQL_OPT_RECONNECT MySQL server has gone away”错误

来源:http://www.felix021.com/blog/read.php?2102 昨天@Zind同学找到我之前的一篇blog(已经修改),里面提到了mysql_ping和MYSQL_OPT_RECONNECT的一些事情. 之所以写那篇blog,是因为去年写的一些代码遇到了"2006:MySQL server has gone away"错误.这个问题是因为wait_timeout这个参数的默认值是28800,也就是说,如果一个连接连续8个小时没有任何请求,那么Server端就

MySQL server has gone away 错误处理

解决方案1: 这个是mysql自身的一个机制:     mysql连接的空闲时间超过8小时后 MySQL自动断开该连接解决办法有两个:     1.修改mysql 配置               增加 MySQL 的 wait_timeout 属性的值      2.定时访问 mysql, 维持 mysql连接的 空闲时间               在应用中, 写个定时任务, 定时去访问 mysql 数据库 以上介绍了" django数据库重连机制"的问题解答,希望对有需要的网友有