Symptoms and problems during MySQL Service Startup

Source: Internet
Author: User

Recently, a server has been configured and has been running for more than a month. However, MySQL was shut down unexpectedly recently, and the logs did not record any process.

So I started the MySQL service. The MySQL process is displayed in the Process Manager, but port 3306 is not enabled when I use netstat to view the port, and MySQL does not record any logs, even failures are not recorded. After MySQL is enabled, it should immediately occupy several hundred MB of memory. Now it only occupies a dozen MB, and it cannot be closed due to the problem of shutting down the MySQL service, if it is stuck there, you must kill it from the Process Manager. So it took a long time. Restarting the server, restoring the original MySQL database, uninstalling and reinstalling, and uninstalling the new version of MySQL have all done, but it has no effect.

When I was about to give up the problem, after a dozen minutes, I found it was ready and the port was enabled. So it does not matter. But a few days later, the problem occurs again, and this time, it takes a longer time to start.

So I was wondering what was going on. Suddenly I thought that MySQL would generate some temporary files in the C: \ WINDOWS \ Temp directory at startup. Will it be a problem here. Unexpectedly, due to permission settings problems, the session files are accumulated and not deleted, so there are 2 million session files. No wonder it is so slow to enable the folder. The problem is found, rename the temp folder (because there are too many files, it cannot be deleted), and create a new temp folder with the correct permissions. This restart is okay, haha.

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.