解决MySQL Error (2013): Lost connection to MySQL server at waiting for initial communication packet

【错误内容】:SQL Error (2013): Lost connection to MySQL server at ‘waiting for initial communication packet‘, system error: 0

【错产生经过】:链接MySQL时出现.

【解决办法】:打开my.ini,找到[mysqld]项,在其后加入一句:skip-name-resolve,保存,重启mysql服务即可~

时间: 2024-08-01 05:58:28

解决MySQL Error (2013): Lost connection to MySQL server at waiting for initial communication packet的相关文章

使用cmd命令登录mysql数据库时报2013-Lost connection to MYSQL server at 'waiting for initial communication packet',system error:0

[错误内容]:SQL Error (2013): Lost connection to MySQL server at 'waiting for initial communication packet', system error: 0 [错产生经过]:链接MySQL时出现. [解决办法]:打开my.ini,找到[mysqld]项,在其后加入一句:skip-name-resolve,保存,重启mysql服务即可~ 以上就是解决MySQL Error (2013): Lost connectio

Mysql连接错误:Lost connection to Mysql server at 'waiting for initial communication packet'

在远程连接mysql的时候,连接不上,出现如下报错:Lost connection to MySQL server at 'waiting for initial communication packet', system error: 0截图如下: 原因分析:mysql开启了DNS的反向解析功能,这样mysql对连接的客户端会进行DNS主机名查找.mysql处理客户端解析过程:1)当mysql的client连过来的时候,服务器会主动去查client的域名.2)首先查找 /etc/hosts 文

使用navicat连接mysql连接错误:Lost connection to Mysql server at 'waiting for initial communication packet'

使用navicat时,报错截图如下: 原因分析: mysql开启了DNS的反向解析功能,这样mysql对连接的客户端会进行DNS主机名查找. mysql处理客户端解析过程: 当mysql的client连过来的时候,服务器会主动去查client的域名. 首先查找 /etc/hosts 文件,搜索域名和IP的对应关系. 如果hosts文件没有,则查找DNS设置,进行DNS反向解析,直到timeout连接失败. mysql的DNS反向解析: mysql接收到连接请求后,获得的是客户端的ip,为了更好的

mysqldump导出报错"mysqldump: Error 2013: Lost connection to MySQL server during query when dumping table `file_storage` at row: 29"

今天mysql备份的crontab自动运行的时候,出现了报警,报警内容如下 mysqldump: Error 2013: Lost connection to MySQL server during query when dumping table `file_storage` at row: 29 mysqldump: Couldn't execute 'show table status like 'property'': MySQL server has gone away (2006)

Error Code: 2013. Lost connection to MySQL server during query

问题情境: 从开发机导出MySQL数据库的schema,然后导入测试机的MySQL数据库,出现错误消息:Error Code: 2013. Lost connection to MySQL server during query. 完整的错误消息: 10:38:35??? CREATE TABLE `__migrationhistory` (?? `MigrationId` varchar(150) NOT NULL,?? `ContextKey` varchar(300) NOT NULL,?

Error NO.2013 Lost connection to Mysql server during query

系统:[[email protected] ~]# cat /etc/redhat-release CentOS release 6.3 (Final) DB版本:mysql> select @@version;+------------+| @@version  |+------------+| 5.6.26-log |+------------+ 数据中心部门申请线上数据库select权限,直接grant  select on DB.* to 'username'@'IP' identifi

2013 - Lost connection to MySQL server at 'reading initial communication packet' 错误解决

一.操作与状态 当使用MySQL客户端连接localhost本地数据库时,连接不上,报错.(使用Tomcat连接数据库时可以连接上,但需要很长的请求时间.) 二.原因与解决办法 关于这个问题网上的解决方法基本个不相同,并且答案也比较少,最后发现是由于自己手欠在电脑管家的"网络优化中"禁用了MySQL程序的网络,恢复连接即可. 2013 - Lost connection to MySQL server at 'reading initial communication packet'

Mysql导入Sql文件时报Error Code: 2013 - Lost connection to MySQL server during query

MySql 有时我们导入sql文件,文件过大,导致Error Code: 2013 - Lost connection to MySQL server during query这种错误 执行以下: [sql] view plain copy print? SHOW GLOBAL VARIABLES LIKE '%timeout'; SET GLOBAL net_write_timeout=28800; SET GLOBAL net_read_timeout=100; SET GLOBAL con

mysql登陆时出现ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0

有4到5天没开mysql,这天晚上打=打开phpstudy,想进去mysql练习练习,结果丢给我这个 ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0 错误2013 (HY000):读取初始通信包时MySQL服务器连接丢失,系统错误0 windows进cmd命令行,输入server.msc,然后找到mysql的服务,重启一下就