[mysqld_multi]
mysqld = /usr/bin/mysqld_safemysqladmin = /usr/bin/mysqladmin[mysqld1]
datadir=/mnt/mysql/3306socket=/tmp/mysql3306.sockpid-file=/mnt/mysql/mysql3306.pidlog-error=/mnt/logs/mysql/3306/error.log#general_log=/mnt/logs/mysql/3306/mysql.loguser=mysql
# Default to using old password format for compatibility with mysql 3.x# clients (those using the mysqlclient10 compatibility package).old_passwords=1# Disabling symbolic-links is recommended to prevent assorted security risks;
# to do so, uncomment this line:# symbolic-links=0port=3306server-id=197log-bin=mysql-bin
skip-external-lockingskip-name-resolvekey_buffer = 256M
max_allowed_packet = 1024Mnet_buffer_length = 1M#table_cache = 512sort_buffer_size = 2Mread_buffer_size = 2Mft_min_word_len = 1query_cache_type = 1
query_cache_size = 64Mread_rnd_buffer_size = 4M
#table_open_cache = 256thread_concurrency = 4interactive_timeout=180
wait_timeout=180long_query_time = 2
log_slow_queries = 1#slow_query_log_file = /mnt/logs/mysql/3306/slow_query.logmax_connect_errors = 10000
log_bin_trust_function_creators=1thread_cache_size = 8
innodb_file_per_table
expire_logs_day = 30
#binlog_format=mixed
master-host=42.121.3.42master-port=3306master-user=slaverepmaster-password=TwirEmU5#master-connect-retry=60[mysqld2]
datadir=/mnt/mysql/3307socket=/tmp/mysql3307.sockpid-file=/mnt/mysql/mysql3307.pidlog-error=/mnt/logs/mysql/3307/error.log#general_log=/mnt/logs/mysql/3307/mysql.loguser=mysql
# Default to using old password format for compatibility with mysql 3.x# clients (those using the mysqlclient10 compatibility package).old_passwords=1# Disabling symbolic-links is recommended to prevent assorted security risks;
# to do so, uncomment this line:# symbolic-links=0port=3307server-id=115log-bin=mysql-bin
skip-external-lockingskip-name-resolvekey_buffer = 256M
max_allowed_packet = 1M#table_cache = 512sort_buffer_size = 2Mread_buffer_size = 2Mft_min_word_len = 1query_cache_type = 1
query_cache_size = 64Mread_rnd_buffer_size = 4M
#table_open_cache = 256thread_concurrency = 4interactive_timeout=180
wait_timeout=180long_query_time = 2
log_slow_queries = 1#slow_query_log_file = /mnt/logs/mysql/3307/slow_query.logmax_connect_errors = 10000
log_bin_trust_function_creators=1thread_cache_size = 8
innodb_file_per_table
expire_logs_day = 30
#binlog_format=mixed
master-host=112.124.34.26master-port=3306master-user=slaverepmaster-password=TwirEmU5master-connect-retry=60[mysqld3]
datadir=/mnt/mysql/3308socket=/tmp/mysql3308.sockpid-file=/mnt/mysql/mysql3308.pidlog-error=/mnt/logs/mysql/3308/error.log#general_log=/mnt/logs/mysql/3308/mysql.loguser=mysql
# Default to using old password format for compatibility with mysql 3.x# clients (those using the mysqlclient10 compatibility package).old_passwords=1# Disabling symbolic-links is recommended to prevent assorted security risks;
# to do so, uncomment this line:# symbolic-links=0port=3308server-id=116log-bin=mysql-bin
skip-external-lockingskip-name-resolvekey_buffer = 256M
max_allowed_packet = 1024Mnet_buffer_length = 1M#table_cache = 512sort_buffer_size = 2Mread_buffer_size = 2Mft_min_word_len = 1query_cache_type = 1
query_cache_size = 64Mread_rnd_buffer_size = 4M
#table_open_cache = 256thread_concurrency = 4interactive_timeout=180
wait_timeout=180long_query_time = 2
log_slow_queries = 1#slow_query_log_file = /mnt/logs/mysql/3308/slow_query.logmax_connect_errors = 10000
log_bin_trust_function_creators=1thread_cache_size = 8
innodb_file_per_table
expire_logs_day = 30
#binlog_format=mixed
master-host=112.124.7.82master-port=3306master-user=slaverepmaster-password=TwirEmU5#master-connect-retry=60
[danny@s7 ~]$ cat /usr/local/mysql55/my.cnf
[mysqld]port=3307datadir=/usr/local/mysql55/datasocket=/tmp/mysql.sockuser=mysqllog-bin = mysql-binserver-id=1170#master-host=112.124.34.26#master-port=3306#master-user=slave#master-password=TwirEmU5#relay_log =//usr/local/mysql55/data/mysql55-relay-binlog_slave_updates =1read_only =1slave-skip-errors=1007,1008,1053,1062,1213,1158,1159,1032,1146skip-external-lockingskip-name-resolveinteractive_timeout=180wait_timeout=180max_connect_errors = 10000log_bin_trust_function_creators=1thread_cache_size = 8innodb_file_per_tablebinlog_format=mixedexpire_logs_day = 30# Disabling symbolic-links is recommended to prevent assorted security risks# symbolic-links=0[mysqld_safe]log-error=/var/log/mysqld55.logpid-file=/usr/local/mysql55/data/s7.piddefault-character-set=utf8log = /var/log/mysqld55_general.log