Я переместил свои сайты с одного окна 2003 на веб-сервер Windows 2008. У меня есть форум php, я копирую каталог данных mysql со старого сервера на новый. есть некоторые базы данных, которые, когда я проверяю с помощью PHPmyadmin, я вижу 230 таблиц, но когда я пытаюсь выполнить запрос по некоторым таблицам, я сталкиваюсь с сообщением об ошибке: Доза НАЗВАНИЯ ТАБЛИЦЫ не существует. Я проверяю папку данных и там есть файлы frm. в файле журнала я вижу это сообщение об ошибке:
Log Name: Application
Source: MySQL
Date: 07/11/2010 01:34:47 ب.ظ
Event ID: 100
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: 00000
Description:
Cannot find or open table 00000/datastore from
the internal data dictionary of InnoDB though the .frm file for the
table exists. Maybe you have deleted and recreated InnoDB data
files but have forgotten to delete the corresponding .frm files
of InnoDB tables, or you have moved .frm files to another database?
or, the table contains indexes that this version of the engine
doesn't support.
See http://dev.mysql.com/doc/refman/5.1/en/innodb-troubleshooting.html
how you can resolve the problem.
For more information, see Help and Support Center at http://www.mysql.com.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="MySQL" />
<EventID Qualifiers="49152">100</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2010-07-11T09:04:47.000000000Z" />
<EventRecordID>48742</EventRecordID>
<Channel>Application</Channel>
<Computer>vmi386</Computer>
<Security />
</System>
<EventData>
<Data>Cannot find or open table npshopforum/datastore from
the internal data dictionary of InnoDB though the .frm file for the
table exists. Maybe you have deleted and recreated InnoDB data
files but have forgotten to delete the corresponding .frm files
of InnoDB tables, or you have moved .frm files to another database?
or, the table contains indexes that this version of the engine
doesn't support.
See http://dev.mysql.com/doc/refman/5.1/en/innodb-troubleshooting.html
how you can resolve the problem.
есть ли способ восстановить эту базу данных
Этот вопрос уже задавали слишком часто, но вот резюме:
Дамп и загрузка. т.е. выгрузите базы данных из оригинала в файл, а затем загрузите их на новый компьютер.
Миграция MySQL с использованием копий файлов может работать, но чаще всего вызывает проблемы. Это особенно актуально, если вы используете таблицы Innodb. Конечно, теперь вы это уже знаете.