Mysql startup failure caused by Disk Full

Source: Internet
Author: User

I suddenly found that mysql cannot be started:
Copy codeThe Code is as follows:
/Etc/init. d/mysql restart
Stopping MySQL: [FAILED]
Timeout error occurred trying to start MySQL Daemon.
Starting MySQL: [FAILED]
Kill cannot be used.
Copy codeThe Code is as follows:
Service mysqld status
Mysqld (pid 21847) is running...
I am wondering, isn't it running? Search around to find clues
Copy codeThe Code is as follows:
Df-k
Filesystem 1K-blocks Used Available Use % Mounted on
/Dev/simfs 10321208 10315872 0 100% /'''
Okay, you know the reason. When the disk is full, find some junk files and delete them.

Cd/go to the root directory to see which folder is large
Copy codeThe Code is as follows:
Du-sk * | sort-n
There are a lot of things in the tmp directory. I deleted them directly.

Last
Copy codeThe Code is as follows:
/Etc/init. d/mysql restart
Stopping MySQL: [OK]
Starting MySQL: [OK]
Oh, also ~~~~ After finishing your work, don't look at the article so short. The query process is quite complicated. Record it. If someone encounters a similar problem, don't take a detour.

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.