首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 脚本使用Percona userstat V2 MySQL补丁检查未使用的索引

脚本使用Percona userstat V2 MySQL补丁检查未使用的索引

  • 资源大小:11.51 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: 脚本 补丁 索引 使用 检查

资 源 简 介

check-unused-keys is a Perl script to identify unused indexes (and tables), based on the INFORMATION_SCHEMA.INDEX_STATISTICS Percona patch. With the --create-alter option, it will create full ALTER TABLE statements to drop the unused indexes. Usage ``` %> ./checkunusedkeys --help Usage: check-unused-keys [OPTIONS] Options: -d, --databases= Comma-separated list of databases to check -h, --help Display this message and exit -H, --hostname= The target MySQL server host --[no]create-alter Print ALTER statements for each table --ignore-databases Comma-separated list of databases to ignore --ignore-indexes Comma-separated list of indexes to ignore db_name.tbl_name.index_name --ignore-tables Comma-separated list of tables to ignore db_name.tbl_name --[no]ignore-primary W
VIP VIP
0.175532s