Two solutions for MySQL error Forcing close of thread

Source: Internet
Author: User

Two solutions for MySQL error Forcing close of thread

1. Modify the mysql configuration file

If the configuration file is my. ini, you can add the following two content in my. ini:

Skip-locking

Skip-name-resolve

Note: In the new mysql version, skip-locking has been replaced by skip-external-locking. If you use skip-locking, the following error may be reported:

[Warning] '-- skip-locking' is deprecated and will be removed in a future release. Please use '-- skip-external-locking 'instead.

Check the logs. Therefore, the new mysql version should be written as follows:

Skip-external-locking

Skip-name-resolve

2. Set in mysql Service

Choose "start"> "run"> "services. msc". Find the mysql service and double-click the "Restore" tab.

First failure: the default value is "no operation", which is changed to "Restart service ".

In the following "restart the service: () minutes later," 0 "indicates that the service will be restarted immediately if it is accidentally terminated.

Click OK to make the settings take effect.

However, there is a problem: if you do this, you cannot end the mysql-nt process in the task manager. If you need to stop the process, change it back before you can perform the operation.

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.