主机
磁盘空间
内存
负载
io使用率
实例
是否备份
HA是否开启
缓冲命中率
主从GTID是否一致
实例大小
表
主键是否溢出
top表大小
表的空间大小
很少访问的表
找出没有主键的表
找出存储引擎不是innodb的表
select concat('alter table ',table_name,' engine=innodb;')
from information_schema.tables
where engine <> 'InnoDB'
and table_schema = '库名';
select table_catalog
,table_schema
,table_name
,engine
from information_schema.tables
where engine<>'InnoDB'
and table_schema not in ('mysql','information_schema','performance_schema');
找出索引不合理的语句
找出没有索引的语句
找出字符集不是urf8mb4的表
找出冗余索引
找出创建但并未使用的索引
image.png









网友评论