Resolves a large number of MySQL unauthenticated user issues

Source: Internet
Author: User

Recently OJ and related open station abnormal slow, simply collapsed, has not found the reason!

Go to the database server, go to MySQL, check it with show processlist command, find a lot of unauthenticated user


Google a bit,

Found that this is a MySQL bug, regardless of whether the connection is through the hosts or IP, MySQL will do DNS counter-check, IP to DNS, due to the inverse of the slow speed

(Whether it is a DNS server provided by the ISP or other reasons), a large number of queries are difficult to cope with, the thread is not enough to increase the thread, but not released, so MySQL will "suspended animation."

The solution is simple, to end this counter-check process, prohibit any parsing.


Open the MySQL configuration file (my.cnf) and add a line under [mysqld]:

Skip-name-resolve

Reload the configuration file or restart the MySQL service.

Resolves a large number of MySQL unauthenticated user issues

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.