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.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » how to restore deleted content?

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old November 25th, 2005, 10:00 AM   #1 (permalink)
Registered User
Comfy Contributor
 
irmtfan's Avatar
 
Joined in Jun 2004
127 posts
Gave thanks: 0
Thanked 0 times
how to restore deleted content?

i have got a daily backup from whole database. a few days ago i delete a category and also all thier articles from database. now i want only back that category and articles. how to restore only deleted contents?
__________________
Ready For Romance
first persian harry potter site: www.jadoogaran.org(means wizards.org in english)
ٌWelcome dedi
irmtfan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 25th, 2005, 12:40 PM   #2 (permalink)
is scientific.
Resident.
 
David's Avatar
 
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,117 posts
Gave thanks: 8
Thanked 34 times
You have to reinsert only the deleted data. This means you'll have to pick out the parts you want reinserted, and use the SQL option to reinsert them.
__________________
Quote:
Originally Posted by removed View Post
Internet Explorer rules.
David is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 2nd, 2005, 10:56 AM   #3 (permalink)
Registered User
Comfy Contributor
 
irmtfan's Avatar
 
Joined in Jun 2004
127 posts
Gave thanks: 0
Thanked 0 times
and how to :" reinsert only the deleted data." ??

i dont find "the SQL option to reinsert them"
__________________
Ready For Romance
first persian harry potter site: www.jadoogaran.org(means wizards.org in english)
ٌWelcome dedi

Last edited by irmtfan; December 2nd, 2005 at 11:00 AM..
irmtfan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 2nd, 2005, 4:01 PM   #4 (permalink)
Demontech Hosting CEO
Excelling Contributor
 
demontech's Avatar
 
Joined in Oct 2004
Lives in Stockholm, Sweden
Hosted on PASS39
744 posts
Gave thanks: 0
Thanked 3 times
You can open your backedup databases in notepad.
And you can edit your DB you have on the server online via PHPMYADMIN in Cpanel.
You just paste your line in the SQL Command window. or add the changes to a new sql file witch you upload.
__________________
Sincerely,
Demon

High Quality Hosting Service Provided By
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
demontech is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old December 2nd, 2005, 5:34 PM   #5 (permalink)
is scientific.
Resident.
 
David's Avatar
 
Joined in Mar 2004
Lives in fear of Obama.
Hosted on Pass 7
13,117 posts
Gave thanks: 8
Thanked 34 times
Yeah, you'll have to edit the backup file. Depending on the way it backed it up you may have serveral columns that say something like:

INSERT "fdshfkjsd"
INSERT "hukdhfs"
INSTER "udhkfjhkjds"

which makes it easier sometimes, or it may be one insert command, with everything in that one. I hate those.
__________________
Quote:
Originally Posted by removed View Post
Internet Explorer rules.
David 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