The 'InnoDB' feature is disabled; you need MySQL built with 'InnoDB' to have it working

The 'InnoDB' feature is disabled; you need MySQL built with 'InnoDB' to have it working


今天执行SQL语句时,MySql报错: The 'InnoDB' feature is disabled; you need MySQL built with 'InnoDB' to have it working
原因是:innodb不能使用
解决方法如下:
1.cmd下查看SHOW variables like "have%";
发现innodb不能使用。
(在这里请注意看清是本地还是服务器上的MySql报错,本人是服务器上Mysql一直报错,
但楼主本人却一直在本地执行这一条SQL语句,结果发现innodb可以使用。困惑了好久)
The 'InnoDB' feature is disabled; you need MySQL built with 'InnoDB' to have it working_第1张图片

2.查看innodb插件是否安装了。发现已经安装了,只是为激活状态。
The 'InnoDB' feature is disabled; you need MySQL built with 'InnoDB' to have it working_第2张图片

3.修改my.ini文件
发现skip-innodb 这个属性被开启了,只要屏蔽掉就可以了,在前面加上#号。最后重启mysql 服务就OK了。

最后,重启mySQl服务方法参考:
http://blog.csdn.net/tolcf/article/details/39235495



你可能感兴趣的:(mysql,mysql,InnoDB,you,need,built,skip-innodb)