參考此篇博客
http://blog.csdn.net/z1547840014/article/details/10198237
檢查所有庫的冗余索引
pt-duplicate-key-checker --user=root --password=cG3sBD9mazGI --host=192.168.27.21
本機(jī)
pt-duplicate-key-checker --user=root --password=cG3sBD9mazGI --host=localhost
檢查本機(jī)冗余索引并輸出到index.sql文件
pt-duplicate-key-checker --user=root --password=cG3sBD9mazGI --host=localhost>index.sql
分享名稱:pt-duplicate-key-checker檢查數(shù)據(jù)庫的重復(fù)索引
網(wǎng)頁地址:
http://m.jiaotiyi.com/article/gggdei.html