最近重启服务器的mysql总是报大量的如下错误:

160330  9:14:26 [Warning] /usr/libexec/mysqld: Forcing close of thread 139  user: 'root'
160330  9:14:26 [Warning] /usr/libexec/mysqld: Forcing close of thread 138  user: 'root'
160330  9:14:26 [Warning] /usr/libexec/mysqld: Forcing close of thread 137  user: 'root'
160330  9:14:26 [Warning] /usr/libexec/mysqld: Forcing close of thread 136  user: 'pdss'
160330  9:14:26 [Warning] /usr/libexec/mysqld: Forcing close of thread 131  user: 'root'
160330  9:14:26 [Warning] /usr/libexec/mysqld: Forcing close of thread 130  user: 'csm'

这个错误其实是mysql在对DNS做反查,由于反查的接续速度过慢,大量的查询处理不及时,线程得不到释放,造成MySQL“ 假死”。

解决办法:

linux服务器

修改mysql的配置文件(my.cnf)在[mysqld]下添加:

  skip-name-resolve

windows服务器

修改mysql的配置文件(my.ini)在[mysqld]下添加:

    skip-lockingskip-name-resolve

修改完成后,重启mysql服务。

转载于:https://blog.51cto.com/garany/1758279

Mysql报错Forcing close of thread 139 user: 'root'相关推荐

  1. Mysql报错130_Mysql报错Forcing close of thread 139 user: 'root'

    最近重启服务器的mysql总是报大量的如下错误:160330  9:14:26 [Warning] /usr/libexec/mysqld: Forcing close of thread 139   ...

  2. Mysql报错130_Mysql报错Forcing close of thread 139 user: 'root'

    最近重启服务器的mysql总是报大量的如下错误: 160330  9:14:26 [Warning] /usr/libexec/mysqld: Forcing close of thread 139  ...

  3. mysql报错:1044 -Access denied for user ‘root‘@‘%‘ to database

    1.登录数据库 mysql -uroot -p 2.进入mysql,依次输入以下命令 use mysql update user set host='%' where user='root'; GRA ...

  4. 大批量数据写入mysql报错 #1436 Thread stack overrun

    一次插入5万条数据导致数据库报错:General error: 1436 Thread stack overrun: 246144 bytes used of a 262144 byte stack, ...

  5. mysql报错1200_mysql配置文件不生效以及配置同步复制报错“The server is not configured as slave”解决办法...

    今晚给2台mysql数据库配置主从同步,因为驾轻就熟,所以很快就配置到最后一步了,谁知道执行最后一个命令"slave start"时给我来了个报错"ERROR 1200 ...

  6. mysql 报错 get error 28 from storage engine 解决方法

    mysql 报错 get error 28 from storage engine 解决方法 参考文章: (1)mysql 报错 get error 28 from storage engine 解决 ...

  7. Mysql报错Fatal error:Can't open and lock privilege tables

     Mysql报错Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist 安装mysql后 ...

  8. 登录mysql报错2059,navicat连接mysql报错2059如何解决

    navicat连接mysql报错2059,如下图所示: 网上查询过后,发现这个错误出现的原因是在mysql8之前的版本中加密规则为mysql_native_password,而在mysql8以后的加密 ...

  9. python怎么捕获mysql报错

    一.前言 最近在运行python脚本的时候,经常出现:mysql server has gone away的错误,导致脚本停止运行.只是代码里面明明已经使用try: except 这种方式来捕获mys ...

最新文章

  1. Android Dialog 关闭的时候标题栏闪烁一下的处理方法
  2. Eureka与zookeeper
  3. vue2.0中文网站2.0
  4. 你应该更新的Java知识之常用程序库
  5. Navicat连接SQL Server报错未发现数据源名称并且未指定默认驱动程序
  6. 给单片机焼写程序需要什么东西_单片机怎么烧写程序
  7. 神策数据荣登《中国企业家》“未来之星”榜单
  8. boost::mutex相关的测试程序
  9. TensorFlow报错:'dict' object has no attribute 'SerializeToString'
  10. 一串字符串转换为ascii_将ASCII字符串(char [])转换为C中的BYTE数组
  11. c++中的运算符异或^,与,或|
  12. JavaScript学习总结(2)——JavaScript数据类型判断
  13. 安装activex手机控件_86/BRZ 免“油饼”安装 Defi 机油压力表
  14. Windows11 家庭版开启远程桌面解决方案之RDP Wrapper Library,小白全面攻略
  15. 网孔型高级维修电工实训装置
  16. js获取某月的天数以及某天的前一个日期和后一天日期
  17. 浅谈CFD(constant fraction discriminator恒比鉴相器)
  18. ffmpeg视频中提取语音
  19. pytest学习和使用8-fixture如何实现teardown功能?(yield的使用)
  20. uipath工具介绍

热门文章

  1. java爬虫面试题_使用Java实现网络爬虫
  2. python训练模型函数参数_一步步亲手用python实现Logistic Regression
  3. 【 MATLAB 】filter 函数介绍(一维数字滤波器)
  4. 【 FPGA 】FIR 滤波器之半带抽取器(Half-band Decimator)
  5. 从大数据技术参考模型角度梳理大数据标准
  6. ET001 不可不掌握的 Logstash 使用技巧
  7. 多少人没熬过45-55这段危险期? 为家人, 请多看一眼!
  8. [转]启动Tomcat提示:指定的服务未安装
  9. Gevent异步服务类实现多姿势WEB实时展示
  10. 【转】Jquery -Ajax 入门练习 Jquery.Ajax 调用后台函数,获取DataTable Json,Asp.net