The maximum allowable default value for MySql to insert data is 1048576 (1M),
which is worth the system parameter: max_allowed_packet
(if there is no such line, add it yourself), save it, and restart MySQL service. Now you can load files larger than 1M.
2. Use the command "SET GLOBAL max_allowed_packet=5*1024*1024"
or: set @@max_allowed_packet=5*1024*1024
which is worth the system parameter: max_allowed_packet
Query method: show variables like '%max_allowed_packet%';
1. Find "max_allowed_packet = 1M" in the [mysqld] section of the my.ini file in the MySQL installation directory, modify it to the value you want(if there is no such line, add it yourself), save it, and restart MySQL service. Now you can load files larger than 1M.
2. Use the command "SET GLOBAL max_allowed_packet=5*1024*1024"
or: set @@max_allowed_packet=5*1024*1024