Packet for query is too large (1190653 > 1048576). You can change this value on the ...

The maximum allowable default value for MySql to insert data is 1048576 (1M),
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

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326595208&siteId=291194637