percona-toolkit OPTIMIZE TABLE

1. MySQL查看剩余空间

select table_name,
round(data_length/1024/1024) as data_length_mb, 
round(data_free/1024/1024) as data_free_mb 
 from information_schema.tables 
 where table_name in 
 ( 'EMPLOYEE', 'DEPARTMENT', 'BENEFITS' );

 

posted @ 2022-12-16 15:54  littlevigra  阅读(26)  评论(0编辑  收藏  举报