Dangerous
sudo rm -rf /var/lib/mysqllinux · bash · Intermediate
Deletes the MySQL data directory outright. Every database, table, and row the server manages lives under that path, so this destroys production data with no undo and no backup step.
Signals to notice
- Recursive force delete of a database data directory
- Absolute system path
- No backup taken first
Think you can spot these under time pressure?
Start Training