mysqladmin -u root -p ping

Category: Databases & SQL

mysqladmin -u root -p ping

Check whether MySQL responds

Prints mysqld is alive and exits 0 when the server answers, making it the standard health probe for monitoring and failover scripts. Add -h to target a remote host.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.