mysqladmin ping error code mysqladmin ping error code linux linux

mysqladmin ping error code


It's not a bug. This behavior is by design.

ping
Check whether the server is available. The return status from mysqladmin is 0 if the server is running, 1 if it is not. This is 0 even in case of an error such as Access denied, because this means that the server is running but refused the connection, which is different from the server not running.