日期:2014-05-16  浏览次数:20683 次

linux mysql innodb错误
我在my.cnf下打开了所有关于innodb的注释,启动都正常,只是在查询的时候报错:
nested exception is com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown table engine 'InnoDB'

mysql日志如下:
120208 9:01:02 [ERROR] Plugin 'InnoDB' init function returned error.
120208 9:01:02 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.

登陆到mysql里,输入show engines显示没有innodb引擎:

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 |
+------------+---------+----------------------------+--------------+------+------------+
7 rows in set (0.00 sec)

在哪里添加呢?

------解决方案--------------------
如果你把skip-innodb 这个选项注视掉 当然就是可以用innodb了