[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [monit] Problem with Mysql

From: Chuck Young
Subject: Re: [monit] Problem with Mysql
Date: Tue, 14 Oct 2008 21:38:08 -0500
User-agent: Thunderbird (X11/20080430)

William Lebel wrote:
Hi all!

I got a problem. All my monit work but only mysql dont work and i don't know why. I got this error: connection failed to localhost:3306 [MYSQL via TCP]

> Here my mysql config part:

As important is /etc/my.cnf, or whatever the config file is for your mysql 

You may be listening, not on localhost (, but on your outside IP. Or, you might have mysql doing all it's connections via sockets, with no networking.

`man netstat` for help on figuring out what processes are listening and where.


check process mysql with pidfile /var/run/mysqld/
group database
start program = "/etc/init.d/mysql start"
stop program = "/etc/init.d/mysql stop"
if failed port 3306 protocol mysql then unmonitor
if 5 restarts within 5 cycles then timeout

reply via email to

[Prev in Thread] Current Thread [Next in Thread]