[英]Mysql: Error Code: 2013. Lost connection to MySQL server during query
I load xml to mysql database. 我将xml加载到mysql数据库。 But it reports '' Error Code: 2013. Lost connection to MySQL server during query '' after 600sec .
但它会在600秒后报告“ 错误代码:2013。查询期间与MySQL服务器的连接断开 ”。
Mysql version: mysql-installer-community-5.7.9.0 MySQL版本:mysql-installer-community-5.7.9.0
load code: 加载代码:
CREATE TABLE posts (
Id INT NOT NULL PRIMARY KEY,
PostTypeId SMALLINT,
AcceptedAnswerId INT,
CreationDate DATETIME,
Score INT NULL,
ViewCount INT NULL,
Body text NULL,
OwnerUserId INT,
LastEditorUserId INT,
LastEditDate DATETIME,
LastActivityDate DATETIME,
Title varchar(256),
Tags VARCHAR(256),
AnswerCount INT,
CommentCount INT,
FavoriteCount INT,
CommunityOwnedDate DATETIME,
ParentId INT
); );
load xml infile 'E:/Input/Posts.xml'
into table posts
rows identified by '<row>';
I have modifed the file '' my.ini '' with following parameters: 我使用以下参数修改了文件“ my.ini ”:
max_allowed_packet = 1024M
interactive_timeout = 2880000000
connect_timeout = 2880000000
net_write_timeout = 2880000000
wait_timeout = 2880000000
net_read_timeout = 2880000000
I didnot find any solution about the Error. 我没有找到有关该错误的任何解决方案。 Anybody can help me fix the bug?
有人可以帮助我修复错误吗?
I figure out the bug. 我找出了错误。
Edit->Preferences->MySQL Session. 编辑->首选项-> MySQL会话。 Set bigger number of time out.
设置更大的超时时间。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.