vim pt-find.cnf host=192.168.100.101port=3306user=adminpassword=admin pt-find --config pt-find.cnf db01 --tablesize +1k --noquote --printf "%D.%N %S % ...
                            
                            
                                分类:
其他好文   时间:
2018-12-01 10:58:55   
                                阅读次数:
132
                             
                    
                        
                            
                            
                                pt-duplicate-key-checker功能为从mysql表中找出重复的索引和外键,这个工具会将重复的索引和外键都列出来,并生成了删除重复索引的语句,非常方便
找出多余的索引:
pt-duplicate-key-checker--user=root--password=db123--socket=/var/tmp/mysql.sock--database=game
结果:
..
                            
                            
                                分类:
其他好文   时间:
2016-04-01 06:49:15   
                                阅读次数:
463