查索引信息
SELECT * FROM mysql.`innodb_index_stats` a WHERE a.`database_name` = '数据库名';
SELECT * FROM mysql.`innodb_index_stats` a WHERE a.`database_name` = '数据库名' and a.table_name like '%表名%';
show index from tb_a;
查索引信息
SELECT * FROM mysql.`innodb_index_stats` a WHERE a.`database_name` = '数据库名';
SELECT * FROM mysql.`innodb_index_stats` a WHERE a.`database_name` = '数据库名' and a.table_name like '%表名%';
show index from tb_a;