#MySQL 5.5.8 [client] port = 3306 socket = /opt/mysql/mysql.sock [mysqld] port = 3306 socket = /opt/mysql/mysql.sock user=mysql skip-slave-start skip-name-resolve key_buffer_size=2M read_buffer_size=2M sort_buffer_size=2M #5.1.3 table_cache deprecated table_open_cache=16384 max_allowed_packet = 16M max_connect_errors = 3000 #net_buffer_length = 8K #read_rnd_buffer_size = 512K #default-storage-engine=InnoDB character-set-server=utf8 collation-server=utf8_bin init-connect='SET NAMES utf8' max_connections=4000 binlog_cache_size=2M query_cache_size = 256M query_cache_limit = 2M thread_cache_size = 100 table_open_cache = 200 #READ-UNCOMMITTED, READ-COMMITTED, REPEATABLE-READ, SERIALIZABLE transaction_isolation = REPEATABLE-READ tmp_table_size=256M #--------log--------- slow_query_log=1 slow_query_log_file=slow.log long_query_time = 1 log-error = err.log #log_slave_updates=1 binlog_format=statement log-bin=mysql-bin expire_logs_days = 20 #last intranet ip server-id = 20654 datadir=/opt/mysql/var #tmpdir=/dev/shm #--------innodb-------------- innodb_data_home_dir = /opt/mysql/ibdata innodb_autoextend_increment = 256 innodb_data_file_path=ibdata1:10M:autoextend innodb_table_locks = 0 innodb_lock_wait_timeout = 10 #(50-80)% * total memory ( 5G ) innodb_buffer_pool_size=10G innodb_additional_mem_pool_size=128M innodb_read_io_threads = 8 innodb_write_io_threads = 4 #A recommended value is 2 times the number of CPUs plus the number of disks. #5.5.8 default 0 #innodb_thread_concurrency = 16 innodb_log_group_home_dir = /opt/mysql/iblogs innodb_log_files_in_group = 2 innodb_flush_log_at_trx_commit = 0 sync_binlog=15 innodb_support_xa=0 innodb_file_per_table=1 innodb_log_file_size = 1G #25% *buffer pool size (1G) innodb_log_buffer_size = 48M relay-log=fb-relay #suppression of duplicate-key and no-key-found errors #slave_exec_mode=IDEMPOTENT [mysqld3306] port = 3306 socket = /opt/mysql3306/mysql.sock pid-file = /opt/mysql3306/mysql.pid datadir = /opt/mysql3306/var innodb_data_home_dir = /opt/mysql3306/ibdata innodb_log_group_home_dir = /opt/mysql3306/iblogs innodb_buffer_pool_size = 10G server-id = 3219206 [mysqld3307] port = 3307 socket = /opt/mysql3307/mysql.sock pid-file = /opt/mysql3307/mysql.pid datadir = /opt/mysql3307/var innodb_data_home_dir = /opt/mysql3307/ibdata innodb_log_group_home_dir = /opt/mysql3307/iblogs innodb_buffer_pool_size = 10G server-id = 3219207 [mysqld3308] port = 3308 socket = /opt/mysql3308/mysql.sock pid-file = /opt/mysql3308/mysql.pid datadir = /opt/mysql3308/var innodb_data_home_dir = /opt/mysql3308/ibdata innodb_log_group_home_dir = /opt/mysql3308/iblogs innodb_buffer_pool_size = 5G server-id = 3219208 read-only = 1 binlog-ignore-db = information_schema binlog-ignore-db = mysql [mysqld3309] port = 3309 socket = /opt/mysql3309/mysql.sock pid-file = /opt/mysql3309/mysql.pid datadir = /opt/mysql3309/var innodb_data_home_dir = /opt/mysql3309/ibdata innodb_log_group_home_dir = /opt/mysql3309/iblogs innodb_buffer_pool_size = 2G server-id = 3219209 log-bin=mysql-bin [mysqld3316] port = 3316 socket = /opt/mysql3316/mysql.sock pid-file = /opt/mysql3316/mysql.pid datadir = /opt/mysql3316/var innodb_data_home_dir = /opt/mysql3316/ibdata innodb_log_group_home_dir = /opt/mysql3316/iblogs innodb_buffer_pool_size = 10G server-id = 3219216 [mysqld3317] port = 3317 socket = /opt/mysql3317/mysql.sock pid-file = /opt/mysql3317/mysql.pid datadir = /opt/mysql3317/var innodb_data_home_dir = /opt/mysql3317/ibdata innodb_log_group_home_dir = /opt/mysql3317/iblogs innodb_buffer_pool_size = 10G server-id = 3219217 [mysqld3318] port = 3318 socket = /opt/mysql3318/mysql.sock pid-file = /opt/mysql3318/mysql.pid datadir = /opt/mysql3318/var innodb_data_home_dir = /opt/mysql3318/ibdata innodb_log_group_home_dir = /opt/mysql3318/iblogs innodb_buffer_pool_size = 5G server-id = 3219218 [mysqld3319] port = 3319 socket = /opt/mysql3319/mysql.sock pid-file = /opt/mysql3319/mysql.pid datadir = /opt/mysql3319/var innodb_data_home_dir = /opt/mysql3319/ibdata innodb_log_group_home_dir = /opt/mysql3319/iblogs innodb_buffer_pool_size = 2G server-id = 3219219 [mysql] no-auto-rehash [mysqldump] quick max_allowed_packet = 16M [isamchk] key_buffer = 20M sort_buffer_size = 20M read_buffer = 2M write_buffer = 2M [myisamchk] key_buffer = 20M sort_buffer_size = 20M read_buffer = 2M write_buffer = 2M [mysqlhotcopy] interactive-timeout
my.cnf
原创
©著作权归作者所有:来自51CTO博客作者底火的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
my.cnf
[client] socket &nbs
my cnf