Pt-duplicate-key-checker checks the database for duplicate indexes
Refer to this blog
http://blog.csdn.net/z1547840014/article/details/10198237
Check redundant indexes for all libraries
pt-duplicate-key-checker --user=root --password=cG3sBD9mazGI --host=192.168.27.21
native
pt-duplicate-key-checker --user=root --password=cG3sBD9mazGI --host=localhost
Check native redundant index and output to index.sql file
pt-duplicate-key-checker --user=root --password=cG3sBD9mazGI --host=localhost>index.sql