About MySQL has gone away problem solving

Source: Internet
Author: User

Everybody whether to import the database when the guide will appear this error, the reason for this error is that your database is a bit large, the data is a bit more, the import time is too long and the server lost connection, let us see how to solve the.

If you use XAMPP modify My.ini will MAX_ALLOWED_PACKET=15MB and then reboot will be OK

Of course, some PHP environment does not have this sentence, it is more embarrassing, nothing, such as phpstudy you open My.ini you find no this sentence, also nothing, directly as I add a sentence on it, do not forget to restart.

On the Linux Word no My.ini linux to find my.cnf this file and then go inside change it OK

About MySQL has gone away problem solving

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.