mysqladmin
Safemysqladmin one-liners
mysqladmin -u root -p status
Quick admin checks from the shell — ping for liveness, status and processlist for at-a-glance state.
Examples
mysqladmin -u monitor -p pingIs MySQL alive?
Syntax
mysqladmin -u u -p [status|ping|processlist|flush-logs]
Before you run it
Mostly reads; flush ops have effects.
Related commands
- Connect (psql/mysql/sqlcmd)Connect to a DB
- SHOW STATUS / VARIABLESServer status & variables
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store