Mysql appears SQL error (2013) connection error resolution _MYSQL

Source: Internet
Author: User
Tags sql error administrator password

Description of the phenomenon
today with Heidisql login virtual machine MySQL, landing does not go up. Wait about a two-minute error prompt: As SQL Error (2013): Lost connection to MySQL server at 'waiting for initial communication packet', system error: 0 shown in the following illustration:

Beginning to think that remote TCP/IP root can only be accessed through the localhost, then the new user, after the% or no results. The problem disappears after attempting to modify the My.ini configuration problem.

Solutions
in My.ini or MY.CNF.
[MYSQLD] Item, add

Skip-name-resolve

In the process of resolving this problem, another startup parameter was found:

Skip-grant-tables

MySQL Startup parameters:

Skip-grant-tables

As the name suggests, is to start MySQL does not start grant-tables, authorization table. What's the use? Of course, it is useful to forget the administrator password and the user table in the MySQL database is wrong. With this parameter, any account with any password (including, of course, empty) can log in to the MySQL database.

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.