在搭建mysql-mmm環境時報錯,mysql-mmm環境時報

來源:互聯網
上載者:User

在搭建mysql-mmm環境時報錯,mysql-mmm環境時報

在monitor啟動後執行mmm_contorl show時顯示下列資訊

ERROR: Can't connect to monitor daemon!

解決思路:

修改設定檔

將debug=0

改為

debug=1

然後重新啟動mysql-mmm-monitor

DEBUG mysql(db2) = 'ERROR: Connect error (host = 10.10.1.100:3306, user = mmm_monitor)! Can't connect to MySQL server on '10.10.1.100' (4)'

原因:因為你的agent設定檔裡寫的是this db1 .this db2.在host裡沒有對應的解析.所以無法串連。

 

解決方案:

1.可以在hosts.conf中寫入每台mysql的主機名稱和IP的對應關係

2.可以使用DNS服務

3.可以在my.cnf中加入skip-name-resolve

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.