Я получаю следующую ошибку в файле ошибок.
110803 6:51:26 InnoDB: Error: table `ims`.`temp_discoveryjobdetails` already exists in InnoDB internal
InnoDB: data dictionary. Have you deleted the .frm file
InnoDB: and not used DROP TABLE? Have you used DROP DATABASE
InnoDB: for InnoDB tables in MySQL version <= 3.23.43?
InnoDB: See the Restrictions section of the InnoDB manual.
InnoDB: You can drop the orphaned table inside InnoDB by
InnoDB: creating an InnoDB table with the same name in another
InnoDB: database and copying the .frm file to the current database.
InnoDB: Then MySQL thinks the table exists, and DROP TABLE will
InnoDB: succeed.
InnoDB: You can look for further help from
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/innodb-troubleshooting.html
И когда я делаю то же самое, например копирую файл frm из другой базы данных сюда и отбрасываю таблицу, я получаю следующую ошибку:
InnoDB: Error: trying to load index PRIMARY for table ims/temp_discoveryjobdetails
InnoDB: but the index tree has been freed!
110803 6:50:26 InnoDB: Error: table `ims`.`temp_discoveryjobdetails` does not exist in the InnoDB internal
InnoDB: data dictionary though MySQL is trying to drop it.
InnoDB: Have you copied the .frm file of the table to the
InnoDB: MySQL database directory from another database?
InnoDB: You can look for further help from
InnoDB: http://dev.mysql.com/doc/refman/5.1/en/innodb-troubleshooting.html
Пожалуйста, помогите мне с этим. Также может кто-нибудь сказать мне, почему возникает эта ошибка.
РЕДАКТИРОВАТЬ:
Проблема возникает только тогда, когда размер диска заполнен, и когда мы используем таблицу Truncate. Также это происходит только в версии 5.1, но не в версии 5.0.
Пробовали это? http://dev.mysql.com/doc/refman/5.1/en/innodb-troubleshooting-datadict.html
Особая проблема с таблицами заключается в том, что сервер MySQL хранит информацию словаря данных в файлах .frm, которые он хранит в каталогах базы данных, тогда как InnoDB также хранит информацию в своем собственном словаре данных внутри файлов табличного пространства. Если вы перемещаете файлы .frm или если сервер выходит из строя в середине операции словаря данных, местоположения файлов .frm могут оказаться не синхронизированными с местоположениями, записанными во внутреннем словаре данных InnoDB.