MySQL, which recently restarted the server, always reported a large number of errors such as:
160330 9:14:26 [Warning] /usr/libexec/mysqld: Forcing close of thread 139 user: ‘root‘
160330 9:14:26 [Warning] /usr/libexec/mysqld: Forcing close of thread 138 user: ‘root‘
160330 9:14:26 [Warning] /usr/libexec/mysqld: Forcing close of thread 137 user: ‘root‘
160330 9:14:26 [Warning] /usr/libexec/mysqld: Forcing close of thread 136 user: ‘pdss‘
160330 9:14:26 [Warning] /usr/libexec/mysqld: Forcing close of thread 131 user: ‘root‘
160330 9:14:26 [Warning] /usr/libexec/mysqld: Forcing close of thread 130 user: ‘csm‘
This error is actually MySQL in the DNS to do counter-check, due to the continued speed of the counter check too slow, a large number of query processing is not timely, the thread is not released, resulting in MySQL "Suspended animation."
Linux Server
Modify the MySQL configuration file (my.cnf) under [mysqld] to add:
Skip-name-resolve
Windows Server
Modify the MySQL configuration file (My.ini) under [mysqld] to add:
Skip-locking Skip-name-resolve
After the modification is complete, restart the MySQL service.
This article is from the "Garany.wang" blog, make sure to keep this source http://garany.blog.51cto.com/7342714/1758279
MySQL error forcing close of thread 139 User: ' Root '