mysqladmin ping

Category: Databases & SQL

mysqladmin ping

Check whether the MySQL server is alive

Prints mysqld is alive and exits 0 when the server responds; add -h and -u for remote checks. A classic healthcheck for scripts. Related: mysqladmin status, mysql -e 'SELECT 1;'.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.