0

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?

Phuong Nguyen
  • 703
  • 1
  • 11
  • 27

3 Answers3

1

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

Phuong Nguyen
  • 703
  • 1
  • 11
  • 27
0

Check out the /var/run directory.

Alex
  • 476
  • 13
  • 35
0

You can do: updatedb; locate mysqld.pid

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

johnshen64
  • 5,747
  • 23
  • 17