«

»


30

Mysql enterprise Monitor安装配置文档

Writed by tubeliu

tubeliu@gmail.com

www.tubeliu.com

文档约定:

阅读者无需通过看这个文档来了解原理和相应解释。他们会看官方文档得到答案。

操作步骤无需解释,阅读者都明白命令的含义。

这东西是什么也无需解释,阅读者可以去看官方文档。

我承认这篇文档写的很粗糙。技术浅薄,文中或许存在疏漏,欢迎指正。另外,如果有什么细节不明或者有相关内容想探讨,请联系我。

同意以上霸王条款的,继续向下看。

1. 申请MySQL Enterprise账户,30天试用期。

2. 进入http://enterprise.mysql.com 点击右上角enterprise monitor

3. 下载service manager and dashboard 到监控服务器上。

4. 登录到监控服务器上。

5. rpm –qa | grep –i lsb查看包是否安装。

6. chmod +x mysqlmonitor-2.1.1.1141-linux-x86-installer.bin

7. ./ mysqlmonitor-2.1.1.1141-linux-x86-installer.bin

8. 一路默认YES到底。设置SSL的部分时可根据自己喜好选择。

9. /etc/init.d/mysql-monitor-server restart

10. 监控服务端配置完毕。

11. 回到http://enterprise.mysql.com 页面。

12. 下载Agents 到监控客户机上。

13. 登录到监控客户机上。

14. 连入MySQL。

15. grant select,replication client,show databases,super,process on *.* to ‘agent’@’127.0.0.1′ identified by ‘password’;

16. grant create,insert on mysql.* to ‘agent’@’127.0.0.1′ identified by  ‘password’;

17. flush privileges;

18. 回到系统命令行。

19. rpm –qa | grep –i lsb

20. chmod +x mysqlmonitoragent-2.1.1.1144-linux-glibc2.3-x86-32bit-installer.bin

21. ./ mysqlmonitoragent-2.1.1.1144-linux-glibc2.3-x86-32bit-installer.bin

22. https://enterprise.mysql.com/docs/monitor/2.1/en/mem-install.html#mem-install-agent-unix 打开这个页面查看安装说明。

23. 说明中第3步中,填入你要监控的服务器信息。

24. 第4步,填入agent账户和密码。

25. 第6步,填入你的服务器IP。如果外网访问则填公有IP。配置在监控页面登录时用的agent账户和密码。

26. 其余步骤一律默认即可。

27. 回到系统命令行。

28. /etc/init.d/mysql-monitor-agent restart

29. 连入MySQL。

30. grant select on mysql.inventory to ‘agent’@’127.0.0.1′ identified by ‘password’;

31. 退出,并回到命令行。

32. 访问http://监控服务器IP:18080/进入初始设置页面。

33. clip_image002

34. 在以上页面中输入你的enterprise账户密码,设置监控页面的管理员账户和agent账户。注意,agent账户的用户名及密码必须和第25步中配置的一样。

35. 如果想要query analyzeer中的Browse Queries正常工作,需要继续进行设置。

36. 其工作原理是整合了mysql proxy。将所有的网站请求先通过proxy,并记录下所有的SQL语句。Mysql proxy 默认端口为6446。

37. 因此,设置你的网站中的配置文件,通过6446端口访问mysql。

38. https://enterprise.mysql.com/docs/monitor/2.1/en/mem-query-analyzer.html 详情,可阅读该说明文件。

39. Enjoy it~

2 条评论

未链接

  1. ddzfeng 说:

    请问这个软件哪里有的下载,能不能给个具体的链接,谢谢!!

  2. tube 说:

    http://www.mysql.com

发表评论

呢称和邮箱是必填项,您的邮箱只有管理员可见。

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>