title: Error 'Unknown table engine 'InnoDB'' on query. after restarting mysql
body: <p>I have mysql DB on server S1 (mysql version 5.1.41-3ubuntu12.7-log), i have created master-slave for this DB on server S2 (mysql version 5.1.54-1ubuntu4-log).<br>
  the DB on S1 was using one data file (ibdata). after dumping the DB to S2 i set innodb_file_per_table=1. this made every table to have its own ibd file. now everything went fine and smoothly.<br>
  but after restarting mysql on S2, i faced a problem with getting this error:<br>
  <code>Error 'Unknown table engine 'InnoDB'' on query. Default database: MyDB</code>
  and when i try to show engines</p>
  
  <pre>
  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         |
  +------------+---------+----------------------------------------------------------------+--------------+------+------------+
  </pre>
  
  <p>innodb is not listed.<br>
  in error log i can see this:</p>
  
  <pre>
  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.
  </pre>
  
  <p>I have tried to delete ib_logfiles but this didn't work as well.<br>
  anybody faced such issue before?? any idea is highly appreciated<br>
  Thanks</p>