简体   繁体   English

如何监视MySQL服务器状态

[英]How Can I monitor MySQL Server status

Background : I have an instance of MySQL 5.7 running on Azure VM (Windows 2012 R2). 背景 :我有一个在Azure VM(Windows 2012 R2)上运行的MySQL 5.7实例。 Every now and then MySQL service stops and I have to manually restart it. MySQL服务不时停止,我必须手动重新启动它。 I had a look at the logs but could not find anywhere where it says why it stopped. 我看了一下日志,却找不到说明停止原因的任何地方。 I also had a look at the slow query log and I have since fixed the slow query now. 我还查看了慢查询日志,并且此后已经修复了慢查询。

My question: Is there any service /tool that can alert me if the service has stopped? 我的问题:如果服务已停止,是否有任何服务/工具可以提醒我?

Install an inbuilt tool "MySQL Notifier". 安装内置工具“ MySQL Notifier”。 It comes with the installation package. 它随安装包一起提供。 It will sit on the lower right portion of your server along with clock and will alert you. 它与时钟一起位于服务器的右下部分,并会提醒您。 https://dev.mysql.com/downloads/windows/notifier/ https://dev.mysql.com/downloads/windows/notifier/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM