mysql:forcing close of thread xxx User: ' Root ' workaround

Source: Internet
Author: User

MySQL server suddenly hangs up at noon. Restart MySQL is also full of failures, only restart the computer to solve, but re-installed MySQL is not, night or hang,

To see MySQL's errorlog, you can only see information similar to the following:

Forcing close of thread xxxxx User: ' Root '

After Baidu

Found that this is a MySQL bug, regardless of whether the connection is through the hosts or IP, MySQL will do the 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 will be difficult to cope with, The thread is not enough to increase the thread, but it is not released, so MySQL will be "suspended animation."

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

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

Skip-name-resolve

2, the content added in My.ini:

  Skip-locking

Skip-name-resolve

Task Manager restart MySQL service to

I do not know why, I add this: skip-locking parameter after the service cannot be started, only one skip resolution can be started, to be resolved

mysql:forcing close of thread xxx User: ' Root ' workaround

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.