PDA

View Full Version : An odd error in MySQL.. (thread.MYI?)


Velocd
04-08-2003, 12:39 AM
It seems some strange outside interference has caused my forum to temporarily shut down.

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

Invalid SQL:
SELECT threadid,forumid,title,replycount,postusername,dat eline,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. ;)

Velocd
04-08-2003, 12:44 AM
Never mind, just noticed a thread that hopefully will solve my problem.

https://vborg.vbsupport.ru/showthread.php?s=&threadid=51275&highlight=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?

Dean C
04-08-2003, 07:58 AM
I had this problem on localhost yesteday. But it was after hacking a file so i thought nothing of it. How odd :S

- miSt

Xenon
04-08-2003, 09:23 AM
well i don't know how these errors can occur, but they can....

just run repair.php ;)

Steve Machol
04-08-2003, 05:18 PM
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/showthread.php?postid=438605#post438605

Velocd
04-09-2003, 04:18 PM
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..

Steve Machol
04-09-2003, 09:37 PM
Today at 10:12 AM Velocd said this in Post #6 (https://vborg.vbsupport.ru/showthread.php?postid=379727#post379727)
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.

Kriek
04-09-2003, 09:46 PM
04-07-03 at 09:33 PM Velocd said this in Post #1 (https://vborg.vbsupport.ru/showthread.php?postid=379051#post379051)
Can't open file: 'thread.MYI'. (errno: 145)

Run this query:

REPAIR TABLE thread

SysRq
06-13-2003, 02:06 AM
so has anyone actually found a fix for this that doesnt require doing every night?

Steve Machol
06-13-2003, 04:43 AM
1. Read this thread:

http://www.vbulletin.com/forum/showthread.php?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/Corrupted_MyISAM_tables.html

and

http://www.vbulletin.com/forum/showthread.php?threadid=69803
mysql4

girlzclan
07-03-2003, 06:07 PM
Ack, can anyone possibly give me the repair.php file for 2.3.0.

I need to get my fprums fixed .. don't have my account login to redownload the files and the person that has the info isn't available right now

assassingod
07-03-2003, 06:11 PM
Just run


REPAIR TABLE *tablename*;


via phpmyadmin

filburt1
07-03-2003, 06:54 PM
<a href="https://vborg.vbsupport.ru/showthread.php?s=&threadid=53369" target="_blank">https://vborg.vbsupport.ru/showt...threadid=53369</a>

lifesourcerec
08-01-2003, 07:08 PM
Restoring a large database is a problem. phpMyAdmin times out and never update the entire database if it is large.