Errore Can't open file: 'nomedatabase.MYI'. (errno: 145): Difference between revisions

From RVM Wiki
Jump to navigation Jump to search
No edit summary
(No difference)

Revision as of 11:22, 20 December 2005

Se durante una query o un mysqldump si ottiene l'errore 145, siginifica che la tabella del database è corrotta, a seguito di un problema con il filesystem.

Occorre ripararla, eseguendo un REPAIR table per ognuna delle tabelle contenute nel database:

mysql nomedatabase

mysql> show tables;
+------------------------+
| Tables_in_nomedatabase |
+------------------------+
| acct                   |
| acct_eth0              |
+------------------------+
2 rows in set (0.00 sec)

mysql> repair table acct;
+-------------+--------+----------+------------------------------------------------+
| Table       | Op     | Msg_type | Msg_text                                       |
+-------------+--------+----------+------------------------------------------------+
| pmacct.acct | repair | warning  | Number of rows changed from 2207385 to 2207356 |
| pmacct.acct | repair | status   | OK                                             |
+-------------+--------+----------+------------------------------------------------+
2 rows in set (2 min 13.69 sec)
.....