You have not installed the MySQL Enterprise Monitor as the root user. Therefore it could not be configured to auto-start on reboot. See the Installation section of the MySQL Enterprise Monitor documentation for instructions on how to do this manually.
提示信息中提到的 root 用户是 OS 用户,不是 MySQL 用户!
开始安装,
安装完成提示,
Setup has completed installing the MySQL Enterprise Monitor files on your computerUninstalling the MySQL Enterprise Monitor files can be done by invoking:/home/scutech/mysql/enterprise/monitor/uninstallTocomplete the installation, launch the MySQL Enterprise Monitor UI andcomplete the initial setup. Refer to the readme filefor additional information and a listof known issues.Please press nextto launch the Monitor UI.
管理脚本,
usage: ./mysqlmonitorctl.sh help ./mysqlmonitorctl.sh (start|stop|status|restart) ./mysqlmonitorctl.sh (start|stop|status|restart) mysql ./mysqlmonitorctl.sh (start|stop|status|restart) tomcat help - this screenstart - start the service(s)stop - stop the service(s)restart - restart orstart the service(s)status - report the statusof the service(s)
1.3 安装客户端
客户端分两种,第一种是在客户端安装被监控的机器上(The architecture of a typical MySQL Enterprise Monitor installation),架构见下图:
MySQL Enterprise Monitor Agent 每分钟收集一次表 performance_schema.events_statements_summary_by_digest,这个表由下面的参数 statements_digest 决定是否激活(默认激活)。
mysql> SELECT * FROM performance_schema.setup_consumers WHERE name = 'statements_digest';+-------------------+---------+| NAME | ENABLED |+-------------------+---------+|+-------------------+---------+1 row in set (0.00 sec)