MySQL Import SQL file error Error 2013 2006 2002

Source: Internet
Author: User
Tags connect mysql version mysql import

Importing SQL today always prompts for errors

The code is as follows:

ERROR 2013 (HY000): Lost connection to MySQL server during query

ERROR 2006 (HY000): MySQL server has gone away

No connection. Trying to reconnect ...

ERROR 2002 (HY000): Can ' t connect to the local MySQL server through socket '/var/lib/mysql/mysql.sock ' (111)

ERROR:

Can ' t connect to the server

Tried on the internet for a long time, various modification my.cnf, finally found that some people say that the INSERT statement is inserted too many rows at a time, the solution is to insert a row

Using Mysqldump to export and add parameters--skip-extended-insert

I'm not sure it's related to the MySQL version, my version is

MySQL Ver 14.14 distrib 5.1.73, for Redhat-linux-gnu (x86_64) using ReadLine 5.1

Finally solves the problem, although has not been able to understand why has this kind of phenomenon to appear, everybody has to know also please to sue, is appreciated

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.