Differences

This shows you the differences between two versions of the page.


pt-find [2016/01/20 20:17] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +====== pt-find ======
  
 +  * [[Percona Toolkit]]
 +
 +Find MySQL tables and execute actions, like GNU find.
 +
 +  * [[http://www.percona.com/doc/percona-toolkit/2.1/pt-find.html|Documentation]]
 +
 +== Find MyISAM tables: ==
 +<code>
 +pt-find --engine MyISAM <database>
 +</code>
 +
 +== Convert MyISAM to InnoDB ==
 +
 +<code>
 +pt-find --engine MyISAM --exec "ALTER TABLE %D.%N ENGINE=InnoDB"
 +</code>
 +
 +== Find the largest tables and indexes, and sort by size: ==
 +
 +<code>
 +pt-find --printf "%T\t%D.%N\n" <database> | sort -rn
 +</code>

Navigation
QR Code
QR Code pt-find (generated for current page)