`
Thomas会Coding
  • 浏览: 93033 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

MySQL报错“Got a packet bigger than ‘max_allowed_packet’ bytes”

 
阅读更多
数据导入报错:Got a packet bigger than‘max_allowed_packet’bytes的问题
 
2个解决方法:
 
1.临时修改:mysql>set global max_allowed_packet=524288000;修改 #512M
 
2.修改my.cnf,需重启mysql。  www.2cto.com  
 
  在 [MySQLd] 部分添加一句(如果存在,调整其值就可以):
  max_allowed_packet=10M
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics