What does “Table does not support optimize, doing recreate + analyze instead” mean?

后端 未结 4 1366
抹茶落季
抹茶落季 2021-01-30 12:32

I am working on MySQL 5.5 and trying to do index rebuild using an OPTIMIZE TABLE query. I am getting the error below:

Table does not support

4条回答
  •  抹茶落季
    2021-01-30 12:50

    Best option is create new table with same properties

    CREATE TABLE  LIKE ;
    INSERT INTO  SELECT * FROM ;
    

    Rename NEW.NAME.TABLE and TABLE.CRASH

    RENAME TABLE  TO ;
    RENAME TABLE  TO ;
    

    After work well, delete

    DROP TABLE ;
    

提交回复
热议问题