In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces the mysql implementation of show processlist unauthenticated user solutions, the content is very detailed, interested friends can refer to, hope to be helpful to you.
A unibilling machine suddenly became overloaded a few days ago. It is found that cpu is heavily occupied in top. Agi programs run slowly and zombie processes appear. In fact, there were only about 50 concurrent calls at that time. It is far from the normal level. The problem of restarting the machine has not been solved. Very strange。
Considering that mysqld consumes the most resources in top, go to the mysql console, run the show processlist command, and find that the information of a process is very special:
User "unauthenticated user"
Command "connect"
Is State "reading from net" attacking my machine from internet? Obviously not, because the Host column shows "localhost".
No way out。 A search on google found that a number of people had encountered the problem. It's not a bug either, because it can be solved by changing the configuration file / etc/my.cnf.
Specifically, add skip-name-resolve to the mysqld column
[mysqld]
Skip-name-resolve
Note that skip-name-resolve can disable dns parsing, but instead of using hostnames in mysql's authorization table, only IP. Exe can be used. If you used to create a mysql user using localhost, you now need to use 127.0.0.1 instead of adding the user in the grant statement.
Then, restart mysqld.
On the implementation of mysql show processlist unauthenticated user solutions to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.