错误代码: 2013 Lost connection to MySQL server during query

安装好mysql服务器,只要心建表,mysql服务就停止,网上各种搜索,查看错误日志文件J7QOUPHFF0VDD2O.err

2015-05-26 10:50:51 1160  InnoDB: Operating system error number 6 in a file operation.
InnoDB: Some operating system error numbers are described at
InnoDB: http://dev.mysql.com/doc/refman/5.6/en/operating-system-error-codes.html
2015-05-26 10:50:51 5344 [ERROR] InnoDB: File .\ibdata1: 'aio read' returned OS error 106. Cannot continue operation

看出可能是数据库引擎InnoDB问题,然后又是各种搜索,有伟大的网友提示将my.ini中的

default-storage-engine=InnoDB 改为 default-storage-engine=MYISAM

问题搞定。

共勉!

时间: 2024-10-07 00:12:26

错误代码: 2013 Lost connection to MySQL server during query的相关文章

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

Procedure execution failed 2013 - Lost connection to MySQL server during query

1 错误描述 Procedure execution failed 2013 - Lost connection to MySQL server during query 2 错误原因 由错误描述可知,是在查询的过程中,数据库失去连接 3 解决办法 重新连接数据库

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_exceptions.OperationalError: (2013, 'Lost connection to MySQL server during query')

最近写了一个定时脚本,每天凌晨跑,每次跑时间很长. 在测试这个脚本的时候,跑了一个小时,发生一个错误,脚本中断,错误如下: _mysql_exceptions.OperationalError: (2013, 'Lost connection to MySQL server during query') 查阅资料,请教同事,最后得出结论: 因为mysql有一个默认的connect_timeout时间,一旦超过,会自动关闭连接. 可以尝试以下两种方式: 创建连接时制定connect_timeout

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,?

2013 lost connection to mysql server during query

navicat 导入sql大脚本到mysql数据库报错 解决办法: 修改mysql.ini配置文件: max_allowed_packet=256M wait_timeout=5000

MySQL中查询时"Lost connection to MySQL server during query"报错的解决方案

一.问题描述: mysql数据库查询时,遇到下面的报错信息: 二.原因分析: dw_user 表数据量比较大,直接查询速度慢,容易"卡死",导致数据库自动连接超时.... 三.解决办法: 方案1.在mysql配置文件[myslqd]下面添加一行设置skip-name-resolve.需要重启mysql服务. 方案2.在hosts文件内添加: ip与主机名的映射关系[这种方式不用重启] 如: 在hosts文件中添加: 127.0.0.1 localhost 其他网上的方法: 1. 代码层

MySQL报错:ERROR 2013 (HY000): Lost connection to MySQL server during query

首先贴上实验用各版本: OS:CentOS 6.5 MySQL: mysql> select version ();+------------+| version () |+------------+| 5.6.22     |+------------+1 row in set (0.00 sec) 事情是这样的:本来是要在虚机上搭建一个wordpress做实验,刚创建完数据库,就在赋权额时候发生不在计划的错误: mysql>grant all on wordpress.* to [emai