Solved

mysql reindex files

Posted on 2004-08-17
2
1,166 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
2 Comments
 
LVL 26

Accepted Solution

by:
ushastry 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Foreword This is an old article.  Instead of using the MySQL extension that was used in the original code examples, please choose one of the currently supported database extensions instead.  More information is available here: MySQLi / PDO (http://…
I have been using r1soft Continuous Data Protection (http://www.r1soft.com/linux-cdp/) for many years now with the mySQL Addon and wanted to share a trick I have used several times. For those of us that don't have the luxury of using all transact…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

774 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