max_allowed_packet problem when importing data mysql

When importing data sql 300M is given: Got a packet bigger than 'max_allowed_packet' bytes

 

There are two ways to solve:

1. temporarily modify: MySQL > Global the max_allowed_packet = 524 288 000 SET;
 
2. Modify the mysql configuration file, add a portion of the max_allowed_packet = 512M [the MySQLd], and then restart mysql.

Reproduced in: https: //www.cnblogs.com/caly/archive/2012/08/06/2624692.html

Guess you like

Origin blog.csdn.net/weixin_34018202/article/details/93538099