MySQL Common errors

Source: Internet
Author: User

Use SQLyog to connect MySQL times with the following error:

ERROR 2013:lost connection to MySQL server @ ' Waiting for initial communication packet ', System error:2

After other tests found the account and password, the Telnet port is not a problem.

Solve:

Client-side parsing process:

1, when the client initiates a connection request, the server proactively checks the host name of the client.

2, first find the/etc/hosts, search the domain name and IP corresponding relationship.

3, if the Hosts file does not, then look for DNS settings, if not set up the DNS server, will immediately return to failure, if the DNS server is set, the reverse resolution, until timeout the following error occurs.

The main cause of the above problems is host and IP resolution problem.

Modify the MySQL configuration file

Vi/etc/my.cnf

[Mysqld]

Skip-name-resolve


After restarting MySQL, the connection is OK.

MySQL Common errors

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.