Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

mysql reindex files

Posted on 2004-08-17
2
Medium Priority
?
1,172 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 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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.
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

618 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