MySQL has a large number of unauthenticated users

Source: Internet
Author: User

Execute the Show Processlist statement in MySQL and you can see that a large number of unauthenticated user processes are stuck. I heard this is a MySQL bug. The following article will introduce the solution to a large number of unauthenticated users in MySQL, if you have encountered such problems, refer.

Problem status


Restarting mysql also fails. You can only see information similar to the following:

Forcing close of thread 12232 user: 'root'

Use mysqladmin to easily monitor mysql:

Mysqladmin-uroot-p ******** status-I 1

It is found that Queries per second avg is only about 200, which can be said to be very low, but Threads is indeed very unstable, and it will actually upgrade more than 200 instantly. In general, this thread value will not be higher than 5 single digits!

Mysqladmin-uroot-p ********* processlist

| 2007 | unauthenticated user | 192.168.4.29: 58519 | Connect | login |
| 2008 | unauthenticated user | 192.168.4.29: 58553 | Connect | login |
| 2009 | unauthenticated user | 192.168.4.29: 58571 | Connect | login |
| 2010 | unauthenticated user | 192.168.4.29: 58577 | Connect | login |
| 2011 | unauthenticated user | 192.168.4.29: 58579 | Connect | login |
| 2012 | unauthenticated user | 192.168.4.29: 58589 | Connect | login |


Cause Analysis

MySQL will try to reverse Query IP-> DNS, because reverse query and resolution are too slow to cope with fast and massive queries.


Solution


Solution: add the -- skip-name-resolve option when starting MySQL.


Reload the configuration file or restart the MySQL service.

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.