lunedì 13 settembre 2010

Repair MySQL tables with error "Incorrect file format"

If you have a MySQL database that has a table with a damaged index, you may get an error, such as "Incorrect file format 'TABLENAME'", with "TABLENAME" being the name of the table with the damaged index.

You can fix this problem using your favourite administrative tool for MySQL.
This is what you have to do:

  1. Log in to your db
  2. Open a query editor
  3. Write a statement like this
    repair table "TABLENAME" use_frm;
    
  4. Execute the query

This should solve the issue with the table by forcing the index to be rebuilt from the database file.

5 commenti:

  1. Get Stellar Phoenix Database Repair for MySQL software which can repair all the corrupt databases and restore the data from unreadable table and table spaces. It allows the user to recover the database completely and it ensures recovery of tables and other objects without changing original format.

    It recovers relationship constraints, table properties, and keys of InnoDB and MyISAM tables.

    To download visit: http://www.mannatsoftware.com/stellar-phoenix-database-repair-for-mysql.html

    RispondiElimina
  2. Thanks! worked like a charm :)
    The query resulted in;
    * Key 1 - Found wrong stored record at 188860
    * Number of rows changed from 0 to 324
    * repair status OK

    RispondiElimina
  3. NJ casino and sportsbook launch Thursday
    › casinos › june-nj › casinos › 거제 출장안마 june-nj Jun 2, 2021 — Jun 2, 2021 구리 출장샵 The Borgata 포천 출장마사지 Hotel Casino & 제주도 출장안마 Spa will be the largest and most spectacular integrated casino resort 영주 출장안마 in the state of New Jersey.

    RispondiElimina