vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Forum and Server Management (https://vborg.vbsupport.ru/forumdisplay.php?f=232)
-   -   Corrupted post table! (https://vborg.vbsupport.ru/showthread.php?t=257473)

Head-Nod.com 01-20-2011 02:39 PM

Corrupted post table!
 
Hello, my post table is totally corrupted. :eek:

It should have many thousands of entries, and it shows 0.

"Repair / Optimize Tables" failes with the following errors:

Warning: Table is marked as crashed and last repair failed
Warning: Size of indexfile is: 5221376 Should be: 1024
Error: Record-count is not ok; is 511476 Should be: 0
Warning: Found 511490 key parts. Should be: 0
Error: Corrupt

And every page on the site craps out with the following errors:

MySQL Error : MySQL server has gone away

What do I do? I accept that I am gonna probably loose all my posts, but what can I do to get the site up and running again? Can I just dump and rebuild the POST table without loosing everything else, my member list, etc?

Any help gratefully accepted! :erm:

benstillman 01-20-2011 03:28 PM

First thing's first; do you have a recent backup of the database?

If not, oops.

Do you have root access to the server? You'll need to run myisamchk from the command line.

As root...
- Shut down mysql.
- Run: myisamchk -r -q /var/db/databasename/post.MYI (Obviously replace /var/db/databasename/post.MYI with the correct path to the post.MYI file. )
- If errors are repaired, start mysql.

--------------- Added [DATE]1295544584[/DATE] at [TIME]1295544584[/TIME] ---------------

Here's a good article: http://www.thegeekstuff.com/2008/09/...ing-myisamchk/

snakes1100 01-20-2011 03:37 PM

You should run a key repair with the -o option from the cmd line, run a -r after the key recovery.


All times are GMT. The time now is 09:25 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01031 seconds
  • Memory Usage 1,713KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete