Tengo mysql DB en el servidor S1 (mysql versión 5.1.41-3ubuntu12.7-log), he creado master-slave para este DB en el servidor S2 (mysql versión 5.1.54-1ubuntu4-log).
DB en S1 estaba usando un archivo de datos (ibdata). después de descargar DB a S2, establezco innodb_file_per_table = 1. esto hizo que cada tabla tenga su propio archivo ibd. ahora todo salió bien y sin problemas.
pero después de reiniciar mysql en S2, me enfrentaba a un problema con conseguir este error:
Error 'Unknown table engine 'InnoDB'' on query. Default database: MyDB
y cuando trato de mostrar los motoresError 'Motor de tabla desconocido' InnoDB '' en la consulta. Después de reiniciar mysql
show engines; +------------+---------+----------------------------------------------------------------+--------------+------+------------+ | Engine | Support | Comment | Transactions | XA | Savepoints | +------------+---------+----------------------------------------------------------------+--------------+------+------------+ | MyISAM | DEFAULT | Default engine as of MySQL 3.23 with great performance | NO | NO | NO | | MRG_MYISAM | YES | Collection of identical MyISAM tables | NO | NO | NO | | BLACKHOLE | YES | /dev/null storage engine (anything you write to it disappears) | NO | NO | NO | | CSV | YES | CSV storage engine | NO | NO | NO | | MEMORY | YES | Hash based, stored in memory, useful for temporary tables | NO | NO | NO | | FEDERATED | NO | Federated MySQL storage engine | NULL | NULL | NULL | | ARCHIVE | YES | Archive storage engine | NO | NO | NO | +------------+---------+----------------------------------------------------------------+--------------+------+------------+
innodb no está en la lista.
en registro de errores que puedo ver esto:
InnoDB: Database physically writes the file full: wait... InnoDB: Cannot initialize created log files because InnoDB: data files are corrupt, or new data files were InnoDB: created when the database was started previous InnoDB: time but the database was not shut down InnoDB: normally after that. 111016 8:24:11 [ERROR] Plugin 'InnoDB' init function returned error. 111016 8:24:11 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 111016 8:24:11 [Warning] Neither --relay-log nor --relay-log-index were used; so replication may break when this MySQL server acts as a slave and has his hostname changed!! Please use '--relay-log=S2-relay-bin' to avoid this problem.
He tratado de eliminar ib_logfiles pero esto no funciona tan bien.
¿alguien se enfrentó a tal problema antes? cualquier idea es muy apreciada
Gracias
tratar http://www.youdidwhatwithtsql.com/unknown-table-engine-innodb/760 – Bala