手机
当前位置:查字典教程网 >编程开发 >mysql数据库 >MySQL错误Forcing close of thread的两种解决方法
MySQL错误Forcing close of thread的两种解决方法
摘要:最近网站访问量大增,可能有些频道程序也有一些问题,造成了MySQL数据库出现Forcingcloseofthread28790user错误。...

最近网站访问量大增,可能有些频道程序也有一些问题,造成了MySQL数据库出现Forcing close of thread 28790 user错误。如果遇到这种情况改怎么解决呢?icech找到两种方法来解决:

1、修改mysql配置文件

如果配置文件是my.ini,可以在在my.ini添加下面两条内容:

skip-locking

skip-name-resolve

注意:在新版本的mysql中,skip-locking已经被换成了skip-external-locking,如果使用skip-locking,可能会报如下错误:

[Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.

要注意查看日志。所以新版本mysql的写法应该是:

skip-external-locking

skip-name-resolve

2、在mysql服务中进行设置

开始菜单 -> 运行 -> services.msc,找到mysql的服务并双击,点击恢复选项卡。

MySQL错误Forcing close of thread的两种解决方法1

第一次失败:默认是“不操作”,改成"重新启动服务"。

在下方的“重新启动服务:()分钟后”添上“0”表示如果服务意外终止则立即重启动。

点击确定使设置生效。

但是有个问题产生了:如果这样进行修改,在任务管理器里无法结束mysql-nt进程。所有如果需要停止进程,先改回来再操作即可。

【MySQL错误Forcing close of thread的两种解决方法】相关文章:

MySQL错误“Specified key was too long; max key length is 1000 bytes”的解决办法

mysql忘记密码的解决方法

Can't connect to MySQL server的解决办法

MySQL UDF调试方式debugview的相关方法

MySQL:reading initial communication packet问题解决方法

windows下mysql忘记root密码的解决方法

MySQL 1067错误解决方法集合

MySQL中文乱码问题的解决方案

MySQL 1303错误的解决方法(navicat)

MySQL 导入慢的解决方法

精品推荐
分类导航