icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old July 8th, 2004, 12:16 AM   #1 (permalink)
Third Plateau
Comfy Contributor
 
Dave's Avatar
 
Joined in Apr 2004
Lives in East Hanover, New Jersey
Hosted on Nifty
272 posts
Gave thanks: 0
Thanked 0 times
Angry CPanel is evil!

Gah! I've accidentally deleted a whole MySQL database. I was all careless in CPanel because I expected it to ask me before doing anything.

Why does it ask the user before deleting an e-mail address, put files in a trash can, but doesn't ask when deleting a WHOLE DATABASE?!

Luckily, I can restore most of the data by going through the server logs. Geeze, that delete button that doesn't prompt is easier to accidentaly hit than typing DELETE from database;.
Dave is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 8th, 2004, 12:19 AM   #2 (permalink)
L'Awesome Advocate
Super #1
 
Ancyru's Avatar
 
Joined in May 2004
Lives in .au
Hosted on Mango
2,423 posts
Gave thanks: 1
Thanked 5 times
Yeah I've had that problem too =\
__________________
When I get sad, I stop being sad, and be AWESOME instead. True story.
Ancyru is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 8th, 2004, 1:16 AM   #3 (permalink)
Third Plateau
Comfy Contributor
 
Dave's Avatar
 
Joined in Apr 2004
Lives in East Hanover, New Jersey
Hosted on Nifty
272 posts
Gave thanks: 0
Thanked 0 times
*whew* I just spent an hour writing a PHP script to parse the log file and re-add it to the database. All is good except for a minor glitch that can be fixed tomorrow. :grrr:
Dave is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 8th, 2004, 3:14 AM   #4 (permalink)
L'Awesome Advocate
Super #1
 
Ancyru's Avatar
 
Joined in May 2004
Lives in .au
Hosted on Mango
2,423 posts
Gave thanks: 1
Thanked 5 times
I don't know how to do that I just deleted the script and installed it again =\
__________________
When I get sad, I stop being sad, and be AWESOME instead. True story.
Ancyru is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 8th, 2004, 8:01 AM   #5 (permalink)
Surpass Fan
On a golden path...
 
Beldin's Avatar
 
Joined in Apr 2004
Lives in Utah
Hosted on Nifty
338 posts
Gave thanks: 0
Thanked 0 times
I did it once too. I now take weekly backups of my databases.
Beldin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 8th, 2004, 8:07 AM   #6 (permalink)
Registered User
Seasoned Poster
 
Carrie's Avatar
 
Joined in Jun 2004
Lives in San Diego, CA (USA)
Hosted on Muyu
65 posts
Gave thanks: 0
Thanked 0 times
Quote:
Originally Posted by syberdave
Gah! I've accidentally deleted a whole MySQL database.
HAHAH Cool I am not alone!
__________________
Carrie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 8th, 2004, 10:07 AM   #7 (permalink)
sam
Surpass Fan
Super #1
 
sam's Avatar
 
Joined in Dec 2003
Lives in NJ
5,057 posts
Gave thanks: 0
Thanked 4 times
accidents do happen. sorry to hear about that one. ive wiped stuff before too.

for future reference...

with 2 click its possible to generate a mysqldump of the entire contents of a db - translated into CREATE TABLE and INSERT INTO statements that PHPmyadmin can execute, or that the cPanel restore feature can load.

Cpanel > backup > Backup db name.
sam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old July 8th, 2004, 3:50 PM   #8 (permalink)
Third Plateau
Comfy Contributor
 
Dave's Avatar
 
Joined in Apr 2004
Lives in East Hanover, New Jersey
Hosted on Nifty
272 posts
Gave thanks: 0
Thanked 0 times
I was only able to recreate the database since it only inserted data in the query string. I'm guessing you weren't that lucky and had some forum or blog accidentally deleted.

Yeah, I know about backup features. I found a backup from 5 days before the accident happened and built onto it from there. I'm thinking about writing some cron script that uses mysqldump on my workstation to make backups.
Dave is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On