Database error Packet for query is too large (1985> 1024).

Packet for query is too large (1985 > 1024). You can change this value on the server by setting the max_allowed_packet' variable.

The reason: beyond the maximum database max_allowed_packet

 

modify:

First maximum current database query: SHOW VARIABLES LIKE '% max_allowed_packet% ';
Change the maximum: SET GLOBAL max_allowed_packet = 2 * 1024 * 1024 * 10;

Note: After modifying the database connection is disconnected, restart mysql, restart the server after the database connection, you can normally access interface.

Guess you like

Origin blog.csdn.net/vandet100/article/details/86699863