Answer the question
In order to leave comments, you need to log in
Why won't MySQL start?
Good day to all!
There is a VM with CentOS 6.5. And there is a problem with MySQL.
1. When restarting the VM, MYSQL does not start, it helps
service mysqld stop
mv /var/lib/mysqld/mysqld.sock /var/lib/mysqld/mysqld.sock.bak
service mysqld start
Answer the question
In order to leave comments, you need to log in
Haven't found the cause of the problem yet?
Maybe there are not enough rights to intermediate directories to get to the file; maybe the config does not specify the same file, which you then look at. There might be something else.
When such "it is not clear what" happens with files and processes, strace is very useful, which displays all the system calls made with parameters and results ( man strace )
To trace all child processes - the -f switch
. do something like
(adjusted for config and binary)
and study strace_log.
First of all, it is interesting:
* is open done on a log file,
* what is the result of open,
* are writes made with the descriptor number that open returned.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question