690 shaares
3 liens privés
3 liens privés
Vider les tables du schéma de performances :
truncate table events_statements_current;
truncate table events_statements_history;
truncate table events_statements_summary_by_digest;
- dans la page, affichage des requêtes pendant 60 secondes :
use performance_schema;
update setup_consumers set enabled='YES' where name IN ('events_statements_history','events_statements_current','statements_digest');
truncate table events_statements_current; truncate table events_statements_history; truncate table events_statements_summary_by_digest;
do sleep(60);
select now(),(count_star/(select sum(count_star) FROM events_statements_summary_by_digest) * 100) as pct, count_star, left(digest_text,150) as stmt, digest from events_statements_summary_by_digest order by 2 desc;
update setup_consumers set enabled='NO' where name IN ('events_statements_history','events_statements_current','statements_digest');