Check whether MySQL responds
Build a paste-ready command, then review its compatibility and effects before running it.
mysqladmin -h <host> pingComplete required fields to copy the generated command.
Compatibility
LinuxVerified for Linux using posix, bash, zsh syntax.
Operational knowledgereview due 2027-01-20
Requirementsmysqladminmysqladmin must be installed and available on PATH.Network accessThe target must be reachable from the current environment.
Version supportmysqladmin Current supported releasesVerified for linux using posix, bash, zsh syntax; consult compatibility notes for platform-specific differences.
Expected signalsmysqld is aliveRepresentative successful output; values vary with the selected target and system state.
Known errorsmysqladmin: command not foundmysqladmin is missing or is not available on PATH.
Verifymysqladmin -h {{host}} pingThe output matches the expected target and exits without an error.Rollback noteNot required: this command is read-only and does not change system state.
Command breakdown
01mysqladminCommandRuns the mysqladmin stage of this one-liner.
02-hOptionRequests human-readable units or command help, depending on the tool.
03<host>ParameterA value supplied in the Fill parameters section.
04pingArgumentPasses ping to mysqladmin.
Example input
mysqladmin -h example.com ping
Example output
mysqld is alive
Illustrative output — exact values vary by system and data.
Official sources