@ruoli
2017-05-26T08:36:30.000000Z
字数 779
阅读 3630
数据库
在Mysql客户端进行跨库复制表的时候出现以下异常:
[Msg] [Dtf] Start transfer to Target Server: ACT_GE_BYTEARRAY
[Msg] [Dtf] Begin transaction on target server
[Msg] [Dtf] End transaction on target server
[Err] [Dtf] 2006 - MySQL server has gone away With statement: INSERT INTO `ACT_GE_BYTEARRAY` VALUES ('4ab6c5d36efc4e32a5803024ac9b16c0', 0x89504E470D0A1A0A0000000D4948445200000241000002AD080600
[Err] [Dtf] Finished - Unsuccessfully
--------------------------------------------------
解决办法如下:
数据导入报错:Got a packet bigger than‘max_allowed_packet’bytes的问题
这个问题可以有2个解决方法:
1.临时修改:mysql>set global max_allowed_packet=524288000;修改 #512M windows/linux
2.修改my.cnf,需重启mysql /linux
2.修改my.ini,需要重启sql /windows
在 [MySQLd] 部分添加一句(如果存在,调整其值就可以):
max_allowed_packet=16M (根据实际情况调整数值)
临时紧急处理办法:
set global net_buffer_length=1000000;
set global max_allowed_packet=1000000000;