GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   mysql> undo; (https://gfy.com/showthread.php?t=301538)

fuzebox 05-25-2004 05:09 PM

mysql> undo;
 
Post here if you've ever found yourself wishing for this feature :(

tical 05-25-2004 05:11 PM

hehe

before you do anything crazy always mysqldump :)

i learned that the hard way

fuzebox 05-25-2004 05:16 PM

Quote:

Originally posted by tical
hehe

before you do anything crazy always mysqldump :)

i learned that the hard way

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...

:mad:

JSA Matt 05-25-2004 05:21 PM

Quote:

Originally posted by fuzebox
mysql> delete from user ; where id=22;
Query OK, 122475 rows affected...

LOL :1orglaugh :1orglaugh Check your queries before pressing enter! :glugglug

NickPapageorgio 05-25-2004 05:22 PM

Quote:

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...

:mad:

Ouch...

woj 05-25-2004 05:24 PM

Quote:

Originally posted by fuzebox

mysql> delete from user ; where id=22;
Query OK, 122475 rows affected...

:mad:

ouch... good thing you had a backup though.. :-/

s9ann0 05-25-2004 05:24 PM

i needed that one time when I put & instead of && in a delete and nuked a whole db

bawdy 05-25-2004 05:27 PM

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

fuzebox 05-25-2004 05:36 PM

I think my right pinky finger is faster than any other...

My brain thinks "that's not right" but my hand has already executed it.

JDog 05-25-2004 05:39 PM

Quote:

Originally posted by fuzebox
mysql> delete from user ; where id=22;
Query OK, 122475 rows affected...

:mad:

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.

jDoG

jwerd 06-02-2004 11:30 PM

Quote:

Originally posted by NickPapageorgio
Ouch...
Definately took the words out of my mouth :P

Illicit 06-02-2004 11:36 PM

definately :(

Lane 06-02-2004 11:39 PM

Quote:

Originally 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
transactions/rollback is supported for innoDB type tables if i'm not mistaken


All times are GMT -7. The time now is 07:06 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123