News for hackers. Stuff that matters.
Re:An administrator accidentally deleted the production data... by hobs on Wednesday March 23, 2016 @08:02AM (#11343634)
I dont use mysql, but it actually has a command line flag to help with this problem that always made me laugh, --i-am-a-dummy

This is an alternate form of the flag --safe-updates, this option prevents MySQL from performing update operations unless a key constraint in the WHERE clause and / or a LIMIT clause are provided.

Re:An administrator accidentally deleted the production data... by rlonstein on Thursday March 24, 2016 @11:27AM (#11353548)
Several years ago a colleague wrote a handy command line tool that was potentially destructive if misused, so naturally the outsourced operations team misused it. In response he added a flag along the lines of “—-yes-i-really-do-know-what-im-doing” that was undocumented and mandatory for the destructive operations.