mysql的配置文件也是主的配置文件
[root@root ~]# cat /etc/my.cnf [client] port = 3306 socket = /tmp/mysql.sock default-character-set=utf8 [mysqld] port = 3306 socket = /tmp/mysql.sock wait_timeout=1000 interactive_timeout=1000 max-connect-errors=100000 max-connections=2000 innodb_flush_method=O_DIRECT skip-name-resolve innodb_buffer_pool_size = 8000M innodb_additional_mem_pool_size = 16M innodb_log_buffer_size = 64M innodb_log_file_size = 256M skip-external-locking key_buffer_size = 2000M max_allowed_packet = 16M table_open_cache = 256 sort_buffer_size = 1024K net_buffer_length = 32K read_buffer_size = 512K read_rnd_buffer_size = 1024K myisam_sort_buffer_size = 16M slow_query_log=1 thread_cache_size=32 long_query_time=2 local-infile=0 log-bin=mysql-bin binlog_format=mixed server-id = 10 character_set_server=utf8 sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES skip-character-set-client-handshake = 1 [mysqldump] quick max_allowed_packet = 16M [mysql] no-auto-rehash [myisamchk] key_buffer_size = 20M sort_buffer_size = 20M read_buffer = 2M write_buffer = 2M [mysqlhotcopy] interactive-timeout
从的配置文件
[root@root ~]# cat /etc/my.cnf [client] port = 3306 socket = /tmp/mysql.sock default-character-set=utf8 [mysqld] port = 3306 socket = /tmp/mysql.sock log-error = /mysql/log/error.log wait_timeout=1000 interactive_timeout=1000 max-connect-errors=100000 max-connections=2000 innodb_flush_method=O_DIRECT skip-name-resolve innodb_buffer_pool_size = 8000M innodb_additional_mem_pool_size = 16M innodb_log_buffer_size = 64M innodb_log_file_size = 256M skip-external-locking key_buffer_size = 2000M max_allowed_packet = 16M table_open_cache = 256 sort_buffer_size = 1024K net_buffer_length = 32K read_buffer_size = 512K read_rnd_buffer_size = 1024K myisam_sort_buffer_size = 16M slow_query_log=1 thread_cache_size=32 long_query_time=2 local-infile=0 log-bin=mysql-bin binlog_format=mixed server-id = 9 character_set_server=utf8 sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES skip-character-set-client-handshake = 1 [mysqldump] quick max_allowed_packet = 16M [mysql] no-auto-rehash [myisamchk] key_buffer_size = 20M sort_buffer_size = 20M read_buffer = 2M write_buffer = 2M [mysqlhotcopy] interactive-timeout
待续其他的一些配置文件