Post here if you've ever found yourself wishing for this feature
mysql> undo;
Collapse
X
-
Hehe yes... On my big production database I usually run a nightly mysqldump as well, has saved my ass before.Originally posted by tical
hehe
before you do anything crazy always mysqldump
i learned that the hard way
My big problem is with quick little queries, it's happened before, I always stick a semicolon before "WHERE".
Ie...
mysql> delete from user ; where id=22;
Query OK, 122475 rows affected...
Comment
-
Ouch...Originally posted by fuzebox
Hehe yes... On my big production database I usually run a nightly mysqldump as well, has saved my ass before.
My big problem is with quick little queries, it's happened before, I always stick a semicolon before "WHERE".
Ie...
mysql> delete from user ; where id=22;
Query OK, 122475 rows affected...
Comment
-
ouch... good thing you had a backup though.. :-/Originally posted by fuzebox
mysql> delete from user ; where id=22;
Query OK, 122475 rows affected...
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip ManagerComment
-
That's great, this is gonna be a mysql horror story thread. I've done the same thing before! It sucks to nuke the whole database.Originally posted by fuzebox
mysql> delete from user ; where id=22;
Query OK, 122475 rows affected...
jDoGNSCash now powering ReelProfits.com
ALSO FEATURING: NSCash.com :: SoloDollars.com :: ReelProfits.com :: BiminiBucks.com :: VOD
PROGRAMS COMING SOON: Greedy Bucks :: Vengeance Cash
NOW OFFERING OVER 60 SITES
CONTACT :: JAMES SMITH :: CHIEF TECHNOLOGY OFFICER :: ICQ (711385133)Comment
-
transactions/rollback is supported for innoDB type tables if i'm not mistakenOriginally posted by bawdy
yeah transactions/rollback and stored procedures would be welcomed additions to mysql... still if u typo and execute the sql you're shit out of luck
Comment


Comment