Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 04-08-2003, 12:39 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default An odd error in MySQL.. (thread.MYI?)

It seems some strange outside interference has caused my forum to temporarily shut down.

I am receiving a strange database error that says:
Code:
Database error in vBulletin 2.3.0:

Invalid SQL: 
  SELECT threadid,forumid,title,replycount,postusername,dateline,views,postuserid
  FROM thread
  WHERE visible=1 AND open<>10 
  ORDER BY dateline DESC LIMIT 8

mysql error: Can't open file: 'thread.MYI'. (errno: 145)

mysql error number: 1016

Date: Monday 07th of April 2003 09:22:23 PM
Script: http://www.animesystem.com/forums/
Referer:
I'm not sure what it is referring to when it says "thread.MYI"

Anyone have any ideas? The most recent thing I've done was create a new subdomain on my server, but I hardly see how this could be causing a problem. I was browsing a thread on my site at school today and it loaded just fine, but sometime between 7 hours ago and now this error occurred.

Thanks if you can help.
Reply With Quote
  #2  
Old 04-08-2003, 12:44 AM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Never mind, just noticed a thread that hopefully will solve my problem.

https://vborg.vbsupport.ru/showthrea...ght=thread.myi

Ironic this error just happened with someone recently as well.

I do have one question though, how can a thread table become corrupted by simply viewing threads or regular browsing on the forum?
Reply With Quote
  #3  
Old 04-08-2003, 07:58 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had this problem on localhost yesteday. But it was after hacking a file so i thought nothing of it. How odd :S

- miSt
Reply With Quote
  #4  
Old 04-08-2003, 09:23 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well i don't know how these errors can occur, but they can....

just run repair.php
Reply With Quote
  #5  
Old 04-08-2003, 05:18 PM
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

By any chance does your server use CPanel? We have a theory that the latest version of CPanel is updating MySQL on a daily basis. Unfortunately if your database is being written to when this occurs, then you could get database corruption.

Find out if you are using CPanel and if so, what version it is. Also find out what the update schedule is set to.

http://www.vbulletin.com/forum/showt...605#post438605
Reply With Quote
  #6  
Old 04-09-2003, 04:18 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cpanel 6.4.0-EDGE Build 1

MySQL 4.0.12

Webhost Manager Update preferences unknown-- how do I find this info in Cpanel?

I just got this MYI error again yesterday, and a few of my threads were lost as well. Strange error..
Reply With Quote
  #7  
Old 04-09-2003, 09:37 PM
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 10:12 AM Velocd said this in Post #6
Cpanel 6.4.0-EDGE Build 1

MySQL 4.0.12

Webhost Manager Update preferences unknown-- how do I find this info in Cpanel?
This info is not in CPnael. It's in WebHost Manage which reuires root access to the server. If you are on a shared server you'll need to contact your host about this.
Reply With Quote
  #8  
Old 04-09-2003, 09:46 PM
Kriek's Avatar
Kriek Kriek is offline
 
Join Date: Jul 2002
Location: Florida
Posts: 135
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
04-07-03 at 09:33 PM Velocd said this in Post #1
Can't open file: 'thread.MYI'. (errno: 145)
Run this query:

Code:
REPAIR TABLE thread
Reply With Quote
  #9  
Old 06-13-2003, 02:06 AM
SysRq SysRq is offline
 
Join Date: Jun 2003
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so has anyone actually found a fix for this that doesnt require doing every night?
Reply With Quote
  #10  
Old 06-13-2003, 04:43 AM
Steve Machol's Avatar
Steve Machol Steve Machol is offline
 
Join Date: Nov 2001
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. Read this thread:

http://www.vbulletin.com/forum/showt...threadid=69803

2. Quick fix:

Try using mysqldump to create a sql backup your database - mysqldump guide at http://www.sitepoint.com/article/678

Then create a new empty database name and import the mysql sql backup back into the empty database, and edit config.php to point to the new database

Also take a read of

http://www.mysql.com/doc/en/Corrupte...AM_tables.html

and

http://www.vbulletin.com/forum/showt...threadid=69803
mysql4
Reply With Quote
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:33 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08509 seconds
  • Memory Usage 2,252KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete