可结合pt-query-digest工具使用 参考:https://www.percona.com/doc/percona-server/5.5/diagnostics/slow_extended_55.html https://dev.mysql.com/doc/refman/5.7/en/replication-options-slave.html#sysvar_log_slow_slave_statements https://mariadb.com/kb/en/mariadb/server-system-variables/#log_slow_slave_statements 《高性能mysql》