Use mysqladmin status instead of ping to check server

The ping does return 0 even in case it can not connect to the server.

Signed-off-by: Michal Čihař <michal@cihar.com>