开发者

Can't optimize innoDB table

开发者 https://www.devze.com 2023-01-18 12:01 出处:网络
As my first message here, i don\'t know if i have to answer or post a new message. I have the same problem as here and the one and only given answer doesn\'t help me (except 开发者_StackOverflowif the

As my first message here, i don't know if i have to answer or post a new message. I have the same problem as here and the one and only given answer doesn't help me (except 开发者_StackOverflowif the documentation is incorrect). "You can make OPTIMIZE TABLE work on other storage engines", but my engine is InnoDB. I thank you for your help. S.


OPTIMIZE TABLE works fine on InnoDB tables. The message that says "Table does not support optimize, doing recreate + analyze instead" is purely informational. You can safely ignore that message.


You cannot IGNORE the result... that means its doing a VERY intensive operation instead of a light one... one a very large table (>100G) this could be hours instead of minutes.


use this

ALTER TABLE table ENGINE='InnoDB';
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号