sqlyog import data file error

SQLyog import data file problem, keep reminding:
There was an error while executing a query.
The query and the error message has been logged at:
C:\Users\liang\AppData\Roaming\SQLyog\sqlyog.err.
Please click on " Open Error File..." to open the error file. The

solution is as follows:

find my.ini in the installation path of mysql, modify the parameter configuration

[mysqld] and add: max_allowed_packet=768M Set the parameter size by yourself Restart the mysql service after

modification (net stop mysql is closed, net start mysql is started; or mysql is manually restarted in Computer-->Management-->Services)

Enter mysql to see if it is successful
show variables like '%max_allowed_packet%';

Note: In most cases, the new version of The modification of the mysql configuration file will not take effect. You can use the following
method to run
set global max_allowed_packet = 768*1024*1024 in the mysql command line,
then close the mysql server service and enter the command line.

The display is as follows:
max_allowed_packet | 805306368 indicates that the modification is successful

Guess you like

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