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.