日期:2014-05-16 浏览次数:20437 次
[client]
#password = your_password port = 3306 socket = /tmp/mysql.sock # Here follows entries for some specific programs # The MySQL server [mysqld] port = 3306 socket = /tmp/mysql.sock skip-external-locking key_buffer_size = 256M max_allowed_packet = 10M table_open_cache = 512 sort_buffer_size = 2M read_buffer_size = 1M read_rnd_buffer_size = 4M myisam_sort_buffer_size = 64M thread_cache_size = 8 query_cache_size= 16M # Try number of CPU's*2 for thread_concurrency thread_concurrency = 16 #5184 add #skip-name-resolve slow-query-log = 20 slow-query-log-file = /usr/local/mysql/data/slow.log default-storage-engine = MyISAM character-set-server = utf8 wait_timeout = 28800 interactive_timeout = 28800 #binlog-ignore-db = gk2011 max_heap_table_size=2048M tmp_table_size = 2048M max_connections = 4000 #5184 no password #skip-grant-tables #5184 add log-bin=mysql-MasterSlave-bin # binary logging format - mixed recommended
binlog_format=mixed server-id = 1 innodb_data_file_path = ibdata1:256M:autoextend
innodb_log_group_home_dir = /usr/local/mysql/data # You can set .._buffer_pool_size up to 50 - 80 % # of RAM but beware of setting memory usage too high innodb_buffer_pool_size = 512M innodb_additional_mem_pool_size = 16M # Set .._log_file_size to 25 % of buffer pool size innodb_log_file_size = 128M innodb_log_buffer_size = 16M innodb_flush_log_at_trx_commit = 1 innodb_lock_wait_timeout = 50 innodb_thread_concurrency = 8
innodb_max_dirty_pages_pct = 90 innodb_read_io_threads = 4 innodb_write_io_threads = 4 innodb_log_files_in_group = 2 [mysqldump]
quick max_allowed_packet = 16M [mysql]
no-auto-rehash [myisamchk]
key_buffer_size = 128M sort_buffer_size = 128M read_buffer = 2M write_buffer = 2M [mysqlhotcopy]
interacti
免责声明: 本文仅代表作者个人观点,与爱易网无关。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
|