Solved

mysql reindex files

Posted on 2004-08-17
2
1,169 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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

729 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