martinmurphy.com – Martin Murphy

Martin Murphy’s Weblog

Archive for October, 2007

mysql: --i-am-a-dummy

with one comment

I just noticed the mysql client “--i-am-a-dummy” parameter in the help output (from mysql --help)
This interestingly named synonym for “--safe-updates” looks like it should be set as the default on any live mysql database. The command is supposed to block updates and deletes that don’t use keys. As an example, it could be used to protect against the proverbial (but not uncommon) “dummy” entering a command like:
UPDATE users SET password = PASSWORD('secret');
instead of the intended command:
UPDATE users SET password = PASSWORD('secret') WHERE user_id = 521;

Written by Martin Murphy

October 9th, 2007 at 12:17 pm

Posted in Software

SEO Powered by Platinum SEO from Techblissonline