InstanceManager uses the standard my. cnf file. It uses the [manager] part to read the option for itself and read the [mysqld] part to create an instance. The [manager] section contains the options listed above. The following is an example of [manager]: # MySQLInstanceManageroptionssection [manager] default-mysqld-pathusrlocalmysqllib
Instance Manager uses the standard my. cnf file. It uses the [manager] part to read the option for itself and read the [mysqld] part to create an instance. The [manager] section contains the options listed above. The following is an example of [manager:
# MySQL Instance Manager options section[manager]default-mysqld-path = /usr/local/mysql/libexec/mysqldsocket=/tmp/manager.sockpid-file=/tmp/manager.pidpassword-file = /home/cps/.mysqlmanager.passwdmonitoring-interval = 2port = 1999bind-address = 192.168.1.5 |
The MySQL instance manager only reads and manages the/etc/my. cnf file in Unix. In Windows, MySQL Instance Manager reads the my. ini file from the installation directory of Instance Manager. You can use the -- defaults-file = file _ name option to change the location of the default option file.
Specify the options for each instance when the instance is started. These are mainly common MySQL server options, but there are some IM-dedicated options:
The binary path of the mysqld server.
·shutdown-delay = Seconds |
The number of seconds that IM should wait for the instance to close. The default value is 35 seconds. After the delay time is exceeded, IM assumes that the instance is being suspended and tries to "kill-9" it. If you use InnoDB with large tables, you should increase the value.
If you want to disable the IM monitoring function for an instance, set this option.
The following examples are provided.
[mysqld]mysqld-path=/usr/local/mysql/libexec/mysqldsocket=/tmp/mysql.sockport=3307server_id=1skip-stack-tracecore-fileskip-bdblog-binlog-errorlog=myloglog-slow-queries [mysqld2]nonguardedport=3308server_id=2mysqld-path= /home/cps/mysql/trees/mysql-5.1/sql/mysqldsocket = /tmp/mysql.sock5pid-file = /tmp/hostname.pid5datadir= /home/cps/mysql_data/data_dir1language=/home/cps/mysql/trees/mysql-5.1/sql/share/englishlog-binlog=/tmp/fordel.log |