In the best case scenario you would be able to restore only what is in that backup. Everything between the date of the backup and today/yesterday might be lost if your ex-host cannot recover it.
You would need upload the same version of WP that was active at the time of the backup and then import the .sql file into the DB using phpMyadmin. I mean import it in an empty database that doesn’t have the tables. MAke sure the config file connects to the DB.
Ask more questions if you need more help.
Also:
http://codex.wordpress.org/Backing_Up_Your_Database
http://codex.wordpress.org/Backing_Up_Your_Database#Restoring_the_Data
Was the entire database corrupted or just a certain table? Would running the repair help anything?
moshu,
Thanks! Those links you provided really helped. I was able to get all of my content back (up until the last backup at least) and most of the formating. Something strange is going on with my sidebar, but I’ll fix that another day. I am just glad to have saved the post and comments.
omgitztrey,
The previous host couldn’t tell me anything. Repair, a backup restore and even rolling back the entire site to a point when it was working didn’t help. They were pretty rude about the whole thing and made it clear that they weren’t going to help with a MySQL issue. I’ve since changed host.
Thanks for taking the time out to help me guys.
1. Ask your Host, if they have seperate MySQL Server, if yes, you can still login to your MySQL account.
2. Once there, instead of exporting whole WordPress DB, just export single table at a time.
3. There after, check which table has got corrputed, and use repair option.
Else, follow Moshu’s reply, ‘coz you’ve no current backup.