[英]Can't change storage engine to myisam, unknown storage engine 'InnoDB'
I'm trying to use mysqldump
to dump a database, but I'm getting an error: 我正在尝试使用
mysqldump
转储数据库,但出现错误:
mysqldump: Couldn't execute 'show create table
wp_commentmeta
': Unknown storage engine 'InnoDB' (1286)mysqldump:无法执行“显示创建表
wp_commentmeta
”:未知存储引擎“ InnoDB”(1286)
No worries; 别担心; I'll just go into MySQL and change the storage engine for the table:
我将进入MySQL并更改表的存储引擎:
mysql> show create table wp_commentmeta;
ERROR 1286 (42000): Unknown storage engine 'InnoDB'
mysql> Alter table wp_commentmeta ENGINE = myisam;
ERROR 1286 (42000): Unknown storage engine 'InnoDB'
What am doing wrong? 怎么了? (and/or) How can I fix it?
(和/或)我该如何解决?
There are many ways to recover InnnoDB tables. 有许多方法可以恢复InnnoDB表。
If you meet these goals, give this page a try. 如果达到这些目标,请尝试一下此页面。
- You got backup of your ibdata1, ib_logfile0 and ib_logfile1
您已备份了ibdata1,ib_logfile0和ib_logfile1
- You also got backup of your database folder with .frm files
您还备份了带有.frm文件的数据库文件夹
- You would like to restore this backup into an MySQL server that's already in production.
您想将此备份还原到已经投入生产的MySQL服务器中。
http://egil.biz/how-to-recover-mysql-data-from-innodb/ http://egil.biz/how-to-recover-mysql-data-from-innodb/
If that doesn't solve your problem, give this other InnoDB recovery walkthrough a try: http://www.mysqlperformanceblog.com/2008/07/04/recovering-innodb-table-corruption/ 如果那不能解决您的问题,请尝试以下其他InnoDB恢复演练: http : //www.mysqlperformanceblog.com/2008/07/04/recovering-innodb-table-corruption/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.