在禁用InnoDB的情况下将InnoDB转换为MyISAM [英] Convert InnoDB to MyISAM with InnoDB disabled
问题描述
我是一家网络酒店的幸运所有者,主持人不通知他人就更改了设置. 那是什么时候 我的数据库中有一些与InnoDB引擎一起运行的表. 但是当晚主机已禁用InnoDB,因此我无法使用ALTER命令将其转换为MyISAM.
I'm the lucker owner of a webhotel where the host changes settings without telling. When thats said, I have some tables in my database that are running with InnoDB engine. But over the night the host have disabled InnoDB, so I cant convert it to MyISAM with ALTER command.
我是否可以从数据库中获取数据,或者在禁用InnoDB时将其转换为MyISAM?
Anyway I can get the data out of the database, or convert it to MyISAM when InnoDB is disabled?
我一直都只能看到
#1033
-文件'file.frm'中的错误信息
#1033
- Incorrect information in file: 'file.frm'
谢谢.
推荐答案
不幸的是,您需要启用InnoDB
,以便MySQL
可以读取数据进行转换.
Unfortunately, you need to have InnoDB
enabled so that MySQL
could read the data for conversion.
要在另一个实例上恢复数据,您将需要MySQL
根数据目录中的ibdata*
文件以及数据库目录中的所有*.ibd
文件(如果您的MySQL
设置启用了innodb_file_per_table
)
To recover the data on another instance, you would need ibdata*
files from MySQL
root data directory as well as all *.ibd
files from your database directory (if your MySQL
setup had innodb_file_per_table
enabled).
这篇关于在禁用InnoDB的情况下将InnoDB转换为MyISAM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!