The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Database corrupted, need professional assistance.
Hello,
Unfortunately some tables in my database got corrupted and died a painful death. It happened at 7PM CST yesterday, and the initial cause was a network switch failure. This is the error message at that time: Quote:
Quote:
Quote:
I'm missing 15,000+ posts, a few thousand member registrations, not to mention a heck of a lot of work to the forum itself. So I do have the corrupted current database, and if anyone is willing to help I'd appreciate it. These are the tables they had listed as corrupted: Quote:
Any ideas? |
#2
|
|||
|
|||
Quote:
You might be able to get some help at the MYSQL Developer Zone, if anyone knows about MYSQL its got to be them, they will tell you for definate if the databases can be repaired or not, at least you can go to stage two and upload your backup from 2 months ago heres their site http://dev.mysql.com/ Good luck and let us know how you got on |
#3
|
||||
|
||||
For now the site is running the 2 month old backup, but we're still missing on a TON of changes and data within that period of time. Yes, I am fully aware that we should have weekly backups and I'm doing my best not to flip out on my host. It's a long story, but there should have been a backup going.
Thanks for the tip, I'll give that a look. --------------- Added [DATE]1243733496[/DATE] at [TIME]1243733496[/TIME] --------------- It appears that some actual tables are empty like THREAD for example, so restoring it at this point doesn't seem likely. I am able to see 526,307 entries in POST which seems right. The USERS table only has 21 (out of ~80k). Speaking of which... is there a way for me to add an Admin account through phpMyAdmin? I just want to be able to switch it back to the bad database for a moment, log into the AdminCP, and pull down the Styles file so it will at least save me that part of setting back up. How do tables get dumped like that anyway? Would it be caused by a mod perhaps? |
#4
|
||||
|
||||
Quote:
UKBL is right and it's not always your hosts fault, we have the options to do it ourselves via phpmyadmin AND or you can install MySQL Dumper etc. I would do as UKBL suggest and let the MySQL guys/gals let you know what they think. In terms of checking the old DB, simply record your DB info from the current config then key in the old DB's name & pw then upload, now check the forums.. they're back but the corrupted one and fyi your members will see this too but it's a quick way to check things out, then re-edit the config and upload again to have the restored forums back. Stuff like this has happened to the best of us, we can beat ourselves up over no backups but best thing is to learn from it, I do them weekly now both via automatic backup and through me manually doing it just in case eh?! . S-MAN |
#5
|
||||
|
||||
You should try this out
https://vborg.vbsupport.ru/showthread.php?t=201319 I use it to back my database up every few days for now. |
#6
|
||||
|
||||
I actually just got phpmyadmin access tonight along with shell access I had to demand through the owner of the host company. We're on a managed hosting solution and pay a premium, but I will checkout that mod Redlinemotorsports to see how well that works out for me. Anyway, moving on from how the backups should be handled...
The site does pull up with the old corrupt database, but I cannot login since the USER table is practically empty. I need a way to insert myself in that USER table I think. Would there be anyway to recover either THREAD or USER table using just the POST table? It seems like it has all the information in there. |
#7
|
|||
|
|||
Have you tried using phpmyadmin to repair the user and thread tables?
|
#8
|
||||
|
||||
Yeah, but nothing really to repair on an empty table however. My only hope I think is to use the POST table to somehow regenerate both THREAD and USER tables. Everything else looks fine, or well enough for the forum to operate again.
--------------- Added 30 May 2009 at 23:38 --------------- Ah, no such luck unless I hear otherwise. The Grand Poobah has spoken here. I'm going to take one of the handful of users in the USER table and change the e-mail to mine, and see if I can reset the password, set the ID in config, log into AdminCP, and snag that style file from the corrupt db. |
#9
|
||||
|
||||
Quote:
Not sure if you can access the front-end, but if you can, register yourself a user and then upload tools.php from the do_not_upload directory. You can run the "Restore Admin Access" tool. |
#10
|
||||
|
||||
Quote:
Attachment 99882 Thank you for the tip about the tools.php file. It will save me a lot of work if I can grab the latest style file. I will admit this part is my fault since it's so easy to download it to my desktop. Sigh... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|