Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I cannot locate pid file for mysql server on oneiric. Opened /etc/mysql/my.cnf and /etc/mysql/debian.cnf but see no settings about pid file. I need this pid file to have monit monitor mysql. Any clue?

share|improve this question

3 Answers 3

up vote 1 down vote accepted

It turns out that the pid file is /var/lib/mysql/NODE_NAME.pid, damn it.

share|improve this answer

Check out the /var/run directory.

share|improve this answer

You can do: updatedb; locate mysqld.pid

As root. This should show you where the file is.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.