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.