MySQL really needs an undo button...
Jul. 15th, 2006 11:22 amIn an attempt to be clever and update all future LondonFur meets on my Furmeets UK site with the new venue, I accidentally made an error with my SQL and managed to update all meets, past and future with the new LF meet venue... (I know, it really shouldn't have happened but my SQL is rusty and I did it fairly early in the morning).
I didn't make a backup before making the change so I've emailed my domain host in the vein hope that they have a backup they can restore. If not, I will need to manually modify all of the meets historically and future meets to show the correct data. As such, please can anyone reading this who has any info for meets which show as "lost data" or meets which show incorrect info let me know the correct details, it would be much appreciated.
Update: Looks like my domain host was able to restore it after all. It's back the way it was now. Now I've just gotta update all the LondonFur meets to the new venue again :P
I didn't make a backup before making the change so I've emailed my domain host in the vein hope that they have a backup they can restore. If not, I will need to manually modify all of the meets historically and future meets to show the correct data. As such, please can anyone reading this who has any info for meets which show as "lost data" or meets which show incorrect info let me know the correct details, it would be much appreciated.
Update: Looks like my domain host was able to restore it after all. It's back the way it was now. Now I've just gotta update all the LondonFur meets to the new venue again :P
no subject
Date: 2006-07-15 10:28 am (UTC)Although... I know it might sound rather cowboyish.. but if the hostorical meets have been and gone... why worry? I know it helps keep a decent record of everything, but I'd say ensuring up-and-coming meets are catalogued correctly would be the real concern :)
But that's just the thoughts of a bummer XD I'll let you get back to your working :-p
no subject
Date: 2006-07-15 12:16 pm (UTC)no subject
Date: 2006-07-16 12:02 am (UTC)no subject
Date: 2006-07-16 12:08 am (UTC)update blah blah
insert blah blah blah
commit;
You can do selects and stuff too. The data you see is the changed version. It doesn't actually go till you do the commit.
If something screws up, you do 'rollback;' instead of commit.
It works in postgresql, and oracle. MySQL can be made to do it, but it requires a certain table type or database type. (I don't remember exactly, but when I played with it, it was not the default.)
no subject
Date: 2006-07-15 07:51 pm (UTC)I mean, I thought that was the whole point of SQL; that it could perform such queries and modifications?
Or am I missing something horribly huge from the equation?
no subject
Date: 2006-07-16 12:02 am (UTC)no subject
Date: 2006-07-15 11:37 pm (UTC)Come to think of it, if you're on TCH and using phpMyAdmin, you can do a backup of a table before you update it :)
no subject
Date: 2006-07-15 11:44 pm (UTC)