Got a packet bigger than ‘max_allowed_packet’ bytes
1.可以在my.ini中最后增加一行max_allowed_packet=16M即可
[mysqld]
max_allowed_packet = 10M
2.进入docker mysql 容器
mysql -u root -p -e "set global net_buffer_length=1000000; set global max_allowed_packet=1000000000;"
set global net_buffer_length=1000000;
set global max_allowed_packet=1000000000;
show VARIABLES like '%max_allowed_packet%' ; 查看数值