mysql innodb 问题解决

无名氏 网站开发 1,195 次浏览 , mysql innodb 问题解决已关闭评论

在LINUX上正常的SQL语句到WINDOWS下有mysql innodb问题

错误信息:
mysql> create table table1 (id int,name varchar(20));
ERROR 1289 (HY000): The ‘InnoDB’ feature is disabled; you need MySQL built with ‘InnoDB’ to have it working
解决方法:
Step 1. 停止 MySQL service
Step 2. 删除以下文件:
D:\AppServ\MySQL\data\ib_logfile*
D:\AppServ\MySQL\data\ibdata*
Step 3:打开my.ini 找到 skip-innodb 并在其前加’#’号
Step 4: 重启MySQL service
MySQL InnoDB needs to create both DATA and LOGS at the same time — it says this in the log file output. So if you don’t delete both data and log files at the same time when it starts up it will fail to create the InnoDB database files properly and InnoDB will show up as DISABLED rather than DEFAULT (when using “show engines”).
问题解决。

Go