mysql

MySQL client

high risk

interactive breakdown — edit the command and press Explain
$ 
⚠ Risks & cautions
Safer / dry-run alternatives
mysql --safe-updates …Block unscoped updates/deletes
mysqldump --single-transaction <db> > backup.sqlBack up first
What it does

Client for MySQL/MariaDB. See the flags and examples below, and run `man mysql` for the full reference.

Common flags
FlagMeaning
-uUser
-hHost
-pPrompt for password (avoid -pPASSWORD)
-eExecute a statement
--safe-updates --safe-updatesRefuse UPDATE/DELETE without WHERE or LIMIT
Examples
mysql --safe-updates -u app -p -h dbInteractive with guard rails · explain & risk-check →
mysql -e "SHOW PROCESSLIST"Running queries · explain & risk-check →
Related
mysqldump psql
Open the full explainer →More in Databases

Reference text is hand-written and may be incomplete — check man mysql for your version. Test destructive commands on a non-production system first.