MySQL Forums
Forum List  »  Spanish

Re: SQL Error : 1017 Can't find file: 'tabla_name.MYI' (errno: 2)
Posted by: Miguel Perez
Date: January 15, 2007 03:27AM

Utilizando phpMyAdmin, elige tu base de datos y ve a la pestaña SQL para ejecutar los siguientes comandos:

REPAIR TABLE <nombre> EXTENDED;

Si este comando no tiene éxito, que es lo que supongo que pasará, tendrás que ejecutar el siguiente comando:

REPAIR TABLE <nombre> USE_FRM;

tras lo cual deberás establecer el AUTO_INCREMENT de la tabla, si tiene un campo AUTO_INCREMENT, a un valor adecuado; por ejemplo, consultando cuál es el máximo (SELECT MAX(<campo>) FROM <tabla>)) y sumando 1. Para establecer el AUTO_INCREMENT, utiliza el siguiente comando:

ALTER TABLE <tabla> AUTO_INCREMENT = <valor>;

Un saludo,

Miguel Pérez
Afina Sistemas - Partner de MySQL en España

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: SQL Error : 1017 Can't find file: 'tabla_name.MYI' (errno: 2)
5497
January 15, 2007 03:27AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.