Mysql startup failure caused by disk full suddenly found that mysql cannot be started:
/Etc/init. d/mysql restart
Stopping MySQL: [FAILED]
Timeout error occurred trying to start MySQL Daemon.
Starting MySQL: [FAILED]
Kill cannot be used.
Service mysqld status
Mysqld (pid 21847) is running...
I am wondering, isn't it running? Search around to find clues
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
Du-sk * | sort-n
There are a lot of things in the tmp Directory. I deleted them directly.
Last
/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.