How to easily understand the MySQL instance manager configuration file _ MySQL

Source: Internet
Author: User
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:

     ·mysqld-path = 
     

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.

     ·nonguarded

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.