Solved

mysql reindex files

Posted on 2004-08-17
2
1,168 Views
Last Modified: 2008-01-09

I need to reindex a table as it has crashed because of power failure while running
Optimizing nor repairing Doesnt work ?
any ideas to fix this




(errno: 144) when repairing


| zm.Events | check | warning  | Table is marked as crashed and last repair failed    |
| zm.Events | check | warning  | Size of indexfile is: 1774592      Should be: 619520 |
| zm.Events | check | error    | Can't read indexpage from filepos: -1                |
| zm.Events | check | error    | Corrupt    

mysql> REPAIR TABLE Events;
+-----------+--------+----------+---------------------+
| Table     | Op     | Msg_type | Msg_text            |
+-----------+--------+----------+---------------------+
| zm.Events | repair | error    | 5 when fixing table |
| zm.Events | repair | status   | Operation failed    |
+-----------+--------+----------+---------------------+
2 rows in set (1.65 sec)
0
Comment
Question by:aot2002
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 26

Accepted Solution

by:
Umesh earned 500 total points
ID: 11828032
Hi

Please check this link..
( backup all the tables before doing anything..)

http://dev.mysql.com/doc/mysql/en/Repair.html


0
 
LVL 1

Author Comment

by:aot2002
ID: 11828079
what a pain it deleted all my records but at least its fixed !
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

More Fun with XML and MySQL – Parsing Delimited String with a Single SQL Statement Are you ready for another of my SQL tidbits?  Hopefully so, as in this adventure, I will be covering a topic that comes up a lot which is parsing a comma (or other…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question