Home > Database > Mysql Tutorial > mysql InnoDB优化表报Table does not support optimi...解决_MySQL

mysql InnoDB优化表报Table does not support optimi...解决_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:29:14
Original
2879 people have browsed it

bitsCN.com

mysql InnoDB优化表报Table does not support optimi...解决

 

优化mysql表的时候,数据库提示

 

1Table does not support optimize, doing recreate + analyze instead
Copy after login

所以改用下面这条语句优化:

1ALTER TABLE yourdatabasename.yourtablename ENGINE='InnoDB';23
Copy after login

 

这句话其实是把原来的数据复制到另一张表,然后删除原来的表,**注意,这句话会锁表影响业务,如果不想影响业务,应该重起表名,最后rename**

其实这不是最根本的办法,应该设计表的时候就用MyISAM而不是InnoDB,MyISAM支持优化表错左

 

bitsCN.com
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template