您好,登錄后才能下訂單哦!
查找重復(fù)的索引和外鍵并生成刪除重復(fù)索引的語句
pt-duplicate-key-checker --user=root --password=energy@db --port=3307
交互式的檢查系統(tǒng)io工具
pt-diskstats --interval 5 --iterations 10
運(yùn)行4小時(shí),每次間隔30s,后臺運(yùn)行
pt-deadlock-logger u=root,p=energy@db --daemonize --run-time=4 --interval=30s
pt-table-checksum 檢測mysql主從一致性
pt-table-checksum --user=user--password=password --host=host1--port=port --databases=db_name --tables=tablename --recursion-method=processlist
pt-table-sync 修復(fù)從庫數(shù)據(jù)
pt-table-sync --execute --replicate percona.checksums --sync-to-master h=host2,P=3306,u=user,p=password
pt-find 查找表
pt-find --user=root --password=energy@db --tablesize +5G
pt-find --user=root --password=energy@db --printf "%T\t%D.%N\n" --tablesize +5G |sort -rn
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。