Home > Database > Mysql Tutorial > 数据库导入-sql脚本insert语句过长,导入报错

数据库导入-sql脚本insert语句过长,导入报错

WBOY
Release: 2016-06-06 09:44:57
Original
2082 people have browsed it

数据库导入mysql

今天在用mysql导入sql脚本时,报错"MySQL server has gone away",经检测,是“insert...value...”里数据过多导致不能插入。后修改配置文件:

<code> 1.tmp_table_size 2.max_allowed_packet</code>
Copy after login

仍旧报同样的错。来位大神解决了吧,真揪心。

ps:最好是通过调整mysql配置参数,因为sql不是本人写的。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template