表引擎转换问题

猪知猪之道
表引擎转换问题

有个表是MyISAM引擎,我想转换为InNODB  数据有4000多万, 有没有好的办法

yueliangdao0608
See the command line tool mysql_convert_table_format

There are some tests on my blog.

yueliangdao0608
[url]http://blog.chinaunix.net/u/29134/showart_707838.html[/url]

huifeideluotuo
[quote]原帖由 [i]yueliangdao0608[/i] 于 2008-6-2 09:30 发表 [url=http://bbs.chinaunix.net/redirect.php?goto=findpost&pid=8483672&ptid=1120430][img]http://bbs.chinaunix.net/images/common/back.gif[/img][/url]
See the command line tool mysql_convert_table_format

There are some tests on my blog. [/quote]


看过版主的blog,也实验了一下,速度还是比较快的,非常方便!!!

ProfessorTian
请教一下高手

直接在mysql下执行sql:

mysql>alter table 数据库表名 type='MYISAM';或者

mysql>alter table 数据库表名 type='Innodb';的话会出现什么结果呢?能否直接这样做呢?这样做之后会丢失数据吗?请高手指教,谢谢!

raid_fifa
楼上做法没问题

yueliangdao0608
[quote]原帖由 [i]ProfessorTian[/i] 于 2008-6-2 16:33 发表 [url=http://bbs.chinaunix.net/redirect.php?goto=findpost&pid=8487533&ptid=1120430][img]http://bbs.chinaunix.net/images/common/back.gif[/img][/url]
请教一下高手

直接在mysql下执行sql:

mysql>alter table 数据库表名 type='MYISAM';或者

mysql>alter table 数据库表名 type='Innodb';的话会出现什么结果呢?能否直接这样做呢?这样做之后会丢失数据 ... [/quote]

This is another way to alter the table's engine.