An error occurred while importing the SQL file from the mysql database.

Source: Internet
Author: User

An error occurred while importing the SQL file from the mysql database.
Sqlyog has been reminding you of the following problems when importing data files:
There was an error while executing a query.
The query and the error message has been logged:
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 and modify the parameter configuration.

[Mysqld] Add the following: max_allowed_packet = 768 M parameter size customized

After modification, restart the mysql Service (net stop mysql is disabled, and net start mysql is started; or manually restart mysql on the computer> Manage> service)

Go to mysql to check whether the operation is successful
Show variables like '% max_allowed_packet % ';

Shown as follows:
Max_allowed_packet | 805306368 indicates that the modification is successful.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.