MySQL OPTIMIZE all tables?

前端 未结 14 2135
迷失自我
迷失自我 2020-12-04 04:57

MySQL has an OPTIMIZE TABLE command which can be used to reclaim unused space in a MySQL install. Is there a way (built-in command or common stored procedure) to run this o

14条回答
  •  情书的邮戳
    2020-12-04 05:22

    You can use mysqlcheck to do this at the command line.

    One database:

    mysqlcheck -o 
    

    All databases:

    mysqlcheck -o --all-databases
    

提交回复
热议问题