mysql导入数据,navicat报错:
1
2
3
4
5
|
MySQL server has gone away
Table Restored: act_ge_bytearray
Rolling back...
Finished
-
Stopped before completion
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
|
问题原因:导入的数据超过了mysql默认单个字段最大容量
#查看数据库中最大的单个文件容量
SHOW VARIABLES LIKE '%max_allowed_packet%';
#设置最大单个文件容量为10M,单次有效
SET GLOBAL max_allowed_packet=20*1024*1024
作者:imsoft 出处:http://www.cnblogs.com/imsoft/
欢迎来信: mailto:imsofter@163.com
本文版权归作者imsoft和博客园共有,欢迎转载,请保留原文链接,
本博客来源于互联网的资源,若侵犯到您的权利,请联系博主予以删除。