我在我的Ubuntu14.04上运行了MySQL 5.6.19社区服务器。最近,我一直试图使用MySQL监控performance_schema服务器。以前,我通过使用cron作业每5秒运行一次显示完整PROCESSLIST查询来完成这一任务。
我按照以下方式配置了performance_schema.setup_consumers表。
mysql> use performance_schema;
mysql> select * from setup_consumers;
+--------------------------------+---------+
| NAME