#++++++++++++++++++++++++++++++++ multi ++++++++++++++++++++++++++

[mysqld_multi]

mysqld = /usr/local/mysqlinstance/bin/mysqld_safe

mysqladmin = /usr/local/mysqlinstance/bin/mysqladmin

use = root

log = /usr/local/mysqlinstance/logs/multi.log


#+++++++++++++++++++++++++++++++client+++++++++++++++++++++++++++

[client]

default-character-set = utf8


#+++++++++++++++++++++++++++++mysql+++++++++++++++++++++++++++++

[mysql]

prompt = mysql(\\u@\h-\R:\\m:\\s [\\d])>

#提示当前数据库操作用户名、库名、时间等

default-character-set=utf8


#++++++++++++++++++++++++++++++++++iapppay++++++++++++++++++++++++++

[mysqld3307]

user = mysql

port = 3307

character-set-server=utf8

socket = /data1/iapppay/mysql.sock

pid-file = /data1/iapppay/mysql.pid

datadir = /data1/iapppay/data

tmpdir = /data1/iapppay/tmpdir

big_tables

skip_external_locking

skip-name-resolve

lower_case_table_names = 1

back_log = 100

#default-storage-engine = INNODB

max_connections = 3000

max_connect_errors = 100000

interactive_timeout = 28800

wait_timeout = 28800

max_allowed_packet = 32M

max_heap_table_size = 128M

tmp_table_size = 128M

max_length_for_sort_data = 4096

net_buffer_length = 8K

sort_buffer_size = 8M

join_buffer_size = 1M

read_buffer_size = 1M

read_rnd_buffer_size = 2M

table_cache = 1024

thread_cache_size = 64

thread_concurrency = 8

query_cache_type = 0

query_cache_size = 64M

query_cache_limit = 1M

#******************************* Logs related settings ***************************

log-error = /data1/iapppay/logs/error.log

log_warnings

long_query_time = 1

slow_query_log

slow_query_log_file = /data1/iapppay/logs/slow-query.log

log_queries_not_using_indexes

binlog_cache_size = 8M

max_binlog_size = 512M

log-bin = /data1/iapppay/binlog/mysql-bin

log-bin-index = /data1/iapppay/binlog/mysql-bin.index

expire_logs_days = 30

#******************************* Replication related settings **********************

server-id = 1000

report_port = 3309

report_user = repl

slave_net_timeout = 60

innodb_flush_log_at_trx_commit = 1

sync_binlog = 1

binlog-format = ROW

transaction_isolation = REPEATABLE-READ

slave-skip-errors = 1062

#******************************* MyISAM Specific options ****************************

key_buffer_size = 32M

bulk_insert_buffer_size = 16M

myisam_sort_buffer_size = 64M

myisam_max_sort_file_size = 1G

myisam_repair_threads = 1

myisam_recover

#***************************** INNODB Specific options ******************************

innodb_file_per_table = 1

innodb_autoinc_lock_mode = 1

innodb_fast_shutdown = 0

innodb_additional_mem_pool_size = 64M

innodb_buffer_pool_size = 6G

innodb_data_home_dir = /data1/iapppay/data

innodb_data_file_path = ibdata1:256M:autoextend

innodb_file_io_threads = 4

innodb_thread_concurrency = 4

innodb_log_buffer_size = 8M

innodb_log_file_size = 128M

innodb_log_group_home_dir = /data1/iapppay/logs/innodb_log

innodb_max_dirty_pages_pct = 20

innodb_lock_wait_timeout = 120

innodb_flush_method=O_DIRECT



#++++++++++++++++++++++++++++++++++lenovo++++++++++++++++++++++++++

[mysqld3310]

user = mysql

port = 3310

socket = /usr/local/mysqlinstance/data/lenovo/mysql.sock

pid-file = /usr/local/mysqlinstance/data/lenovo/mysql.pid

datadir = /usr/local/mysqlinstance/data/lenovo/data

tmpdir = /usr/local/mysqlinstance/data/lenovo/tmpdir

big_tables

skip_external_locking

skip-name-resolve

lower_case_table_names = 1

back_log = 100

#default-storage-engine = INNODB

max_connections = 3000

max_connect_errors = 100000

interactive_timeout = 28800

wait_timeout = 28800

max_allowed_packet = 32M

max_heap_table_size = 128M

tmp_table_size = 128M

max_length_for_sort_data = 4096

net_buffer_length = 8K

sort_buffer_size = 8M

join_buffer_size = 1M

read_buffer_size = 1M

read_rnd_buffer_size = 2M

table_cache = 1024

thread_cache_size = 64

thread_concurrency = 8

query_cache_type = 0

query_cache_size = 64M

query_cache_limit = 1M

#******************************* Logs related settings ***************************

log-error = /usr/local/mysqlinstance/data/lenovo/logs/error.log

log_warnings

long_query_time = 1

slow_query_log

slow_query_log_file = /usr/local/mysqlinstance/data/lenovo/logs/slow-query.log

log_queries_not_using_indexes

binlog_cache_size = 8M

max_binlog_size = 512M

log-bin = /usr/local/mysqlinstance/data/lenovo/binlog/mysql-bin

log-bin-index = /usr/local/mysqlinstance/data/lenovo/binlog/mysql-bin.index

expire_logs_days = 30

#******************************* Replication related settings **********************

server-id = 1010

report_port = 3310

report_user = repl

slave_net_timeout = 60

innodb_flush_log_at_trx_commit = 1

sync_binlog = 1

binlog-format = ROW

transaction_isolation = REPEATABLE-READ

slave-skip-errors = 1062

#******************************* MyISAM Specific options ****************************

key_buffer_size = 32M

bulk_insert_buffer_size = 16M

myisam_sort_buffer_size = 64M

myisam_max_sort_file_size = 1G

myisam_repair_threads = 1

myisam_recover

#***************************** INNODB Specific options ******************************

innodb_file_per_table = 1

innodb_autoinc_lock_mode = 1

innodb_fast_shutdown = 0

innodb_additional_mem_pool_size = 64M

innodb_buffer_pool_size = 8G

innodb_data_home_dir = /usr/local/mysqlinstance/data/lenovo/data

innodb_data_file_path = ibdata1:256M:autoextend

innodb_file_io_threads = 4

innodb_thread_concurrency = 4

innodb_log_buffer_size = 8M

innodb_log_file_size = 128M

innodb_log_group_home_dir = /usr/local/mysqlinstance/data/lenovo/logs/innodb_log

innodb_max_dirty_pages_pct = 20

innodb_lock_wait_timeout = 120

innodb_flush_method=O_DIRECT



#++++++++++++++++++++++++++++++++++++++++mysqldump++++++++++++++++++++++

[mysqldump]

quick

max_allowed_packet = 2G