MySQL的執行個體管理器設定檔

來源:互聯網
上載者:User

Instance Manager使用標準my.cnf檔案。它使用[manager]部分為自己讀取選項並讀取[MySQLd]部分來建立執行個體。[manager]部分包含上述列出的選項。下面為[manager]部分樣本:

# MySQL Instance Manager options section
[manager]
default-mysqld-path = /usr/local/mysql/libexec/mysqld
socket=/tmp/manager.sock
pid-file=/tmp/manager.pid
password-file = /home/cps/.mysqlmanager.passwd
monitoring-interval = 2
port = 1999
bind-address = 192.168.1.5

MySQL執行個體管理器只在Unix中讀取並管理/etc/my.cnf檔案。在Windows中,MySQL執行個體管理器從Instance Manager的安裝目錄讀取my.ini檔案。用--defaults-file=file_ name選項可以更改預設選項檔案的位置。

執行個體部分指定啟動時給每個執行個體的選項。這些主要是普通MySQL伺服器選項,但有一些IM-專用選項:

·mysqld-path = <path-to-mysqld-binary>

mysqld伺服器二進位的路徑。

·shutdown-delay = Seconds

IM應等待執行個體關閉的秒數。 預設為35秒。超過延遲時間後,IM假定執行個體正掛起並試圖“kill –9”它。如果你使用帶large表的InnoDB,你應當增加該值。

·nonguarded

如果你想要為某個執行個體禁用IM監視功能,應設定該選項。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.