解决The InnoDB feature is disabled; you need MySQL built with InnoDB

来源:互联网 发布:sql 中文字符串函数 编辑:程序博客网 时间:2024/05/17 08:17
解决The InnoDB feature is disabled; you need MySQL built with InnoDB

在MYSQL下创建事务,存储过程,触发器,主外健的时候,数据表的类型必须是InnoDB的,但有的时候MYSQL不支持这种类型,会出现一种错误!

MySQL

出现如下语句:The InnoDB feature is disabled; you need MySQL built with InnoDB to have it working;

是mysql配置文件禁掉了这个选项!

关闭mysql数据库,停止MYSQL服务

在mysql的安装目录中找到my.ini文件

找到skip-innodb,在前面加上#号

保存,启动mysql服务!搞定!