Lost connection to MySQL server during query 的解决方案

| | Comments (4) | TrackBacks (0)

当通过 TCP/IP 连接 MySQL 远程主机时,出现 ERROR 2013 (HY000): Lost connection to MySQL server during query
不论是直接命令行连接还是通过Navicat来连接,都会出现此问题。
MySQL版本是5.0.45,自行编译安装。
Google之后查的解决方案:

MySQl的conf文件[mysqld]项下添加一个启动参数:
skip-name-resolve
问题解决.
另有未经证实的说法,直接flush host即可。
进行MySQL Replication如果出现此错误也可以用此方法解决,目前我实现的同步都是基于IP的,还没有用域名。

相关联动:
MySQL DNS Details

MySQL:show processlistでunauthenticated userによる負荷:skip-name-resolve

Skip-name-resolve, Impossible d'activer cet argument

编译和连接如何影响MySQL的速度

How Compiling and Linking Affects the Speed of MySQL

0 引用回复

下列是引用此篇的博客地址: Lost connection to MySQL server during query 的解决方案.

本篇引用回复地址: http://www.renwenyue.com/mt/mt-tb.cgi/16

4 评论

补充一条相关链接:
从MySQL得到最大的性能
http://fanqiang.chinaunix.net/db/mysql/2001-05-14/1379.shtml

虽然是manual上的,但是比自己找方便~

hypnotherapy analysis
[url=http://forums.megagames.com/forums/member.php?u=185476 ]natural penis enlargement no pills or weights[/url]

why is hypnotherapy popular in the us

添加评论

About this Entry

This page contains a single entry by suchasplus published on November 9, 2007 11:23 PM.

如何查看自己的信用记录 was the previous entry in this blog.

基于debian和bind9的动态域名解析 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.