MySQL database import SQL file is unsuccessful

Source: Internet
Author: User
Tags mysql manual
SQLyog Import data file problem, always remind:
There is an error while executing a query.
The query and the error message have been logged at:
C:\Users\liang\AppData\Roaming\SQLyog\sqlyog.err.

Click on the "Open error file ..." To open the error file.


Here's how to fix it:

Locate the My.ini in the MySQL installation path, modify the parameter configuration

[Mysqld] Added below:max_allowed_packet=768m parameter size self-determined

Restart MySQL service after modification (net stop MySQL shutdown, net start MySQL startup; or find MySQL manual restart in the computer----managed--service)

Enter MySQL to see if it is successful
Show variables like '%max_allowed_packet% ';

Shown below:
Max_allowed_packet | 805306368 the modification was successful.


MySQL database import SQL file is unsuccessful

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.