MySQL 5.5以及以上版本出现Unknown/unsupported storage engine: InnoDB错误,是由于你的存储引擎使用了InnoDB
,但是数据库默认没有开启innodb
。
MyISAM
,再将mysql关闭innodb
在my.cnf [mysqld]下增加:
# Disable innodb default-storage-engine=MyISAM #default-tmp-storage-engine=MYISAM loose-skip-innodb loose-innodb-trx=0 loose-innodb-locks=0 loose-innodb-lock-waits=0 loose-innodb-cmp=0 loose-innodb-cmp-per-index=0 loose-innodb-cmp-per-index-reset=0 loose-innodb-cmp-reset=0 loose-innodb-cmpmem=0 loose-innodb-cmpmem-reset=0 loose-innodb-buffer-page=0 loose-innodb-buffer-page-lru=0 loose-innodb-buffer-pool-stats=0 loose-innodb-metrics=0 loose-innodb-ft-default-stopword=0 loose-innodb-ft-inserted=0 loose-innodb-ft-deleted=0 loose-innodb-ft-being-deleted=0 loose-innodb-ft-config=0 loose-innodb-ft-index-cache=0 loose-innodb-ft-index-table=0 loose-innodb-sys-tables=0 loose-innodb-sys-tablestats=0 loose-innodb-sys-indexes=0 loose-innodb-sys-columns=0 loose-innodb-sys-fields=0 loose-innodb-sys-foreign=0 loose-innodb-sys-foreign-cols=0
在my.cnf [mysqld]下增加:
default-storage-engine=INNODB
以上操作都必须关闭mysql再修改my.cnf。