Re:How not to test that mysqld is alive
by brianr on Monday October 05, 2009 @08:26PM
(#863201)
And best way, that will set your mind at ease even if you’re worried that “mysql is running but not responding; it is stuck”: connect to MySQL and issue SELECT 1, SELECT NOW(), SELECT something.
Fortunately this is easy:
$ echo "select now();" | mysql
now()
2009-10-05 19:24:22
Fortunately this is easy: