Home  >  Article  >  Database  >  关于Got a packet bigger than ‘max_allowed_packet‘_MySQL

关于Got a packet bigger than ‘max_allowed_packet‘_MySQL

WBOY
WBOYOriginal
2016-06-01 14:01:031105browse

 昨天用导入数据的时候发现有的地方有这个错误。后来才发现我用RPM包装的MYSQL配置文件里面有old_passwords=1去掉就可以了。

Got a packet bigger than ‘max_allowed_packet’ bytes or ERROR 1153 (08S01) at line 616: Got a packet bigger than ‘max_allowed_packet’ by tes...

  昨天用导入数据的时候发现有的地方有这个错误。

  后来才发现我用RPM包装的MYSQL配置文件里面有old_passwords=1去掉就可以了。

  还有加了
max_allowed_packet=500M
这样就不会出错了。

  PS:建议在5.0后的版本中关掉old_passwords选项。

  如果你不知道你的OLD_PASSWORDS是不是开启了,可以用命令。

show VARIABLES like '%old_passwords%';

query result(1 records)


Variable_name Value
old_passwords OFF

Statement:
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