mysql -e "explain select name from db01.t01 where code>1" |pt-visual-explain
echo "select name from t01 where code>1" >pt-explain.sql
pt-visual-explain --host 192.168.100.101 --port 3306 --user admin --password admin
--database db01
--clustered-pk
--connect pt-explain.sql