[Client]
Port = 3306
Socket =/application/mysql-5.5.32/tmp/mysql.sock
[Mysqld]
Port = 3306
Socket =/application/mysql-5.5.32/tmp/mysql.sock
Back_log = 50
max_connections = 100
Max_connect_errors = 10
Table_open_cache = 2048
Max_allowed_packet = 16M
Binlog_cache_size = 1M
Max_heap_table_size = 64M
Read_buffer_size = 2M
Read_rnd_buffer_size = 16M
Sort_buffer_size = 8M
Join_buffer_size = 8M
Thread_cache_size = 8
Thread_concurrency = 8
Query_cache_size = 64M
Query_cache_limit = 2M
Ft_min_word_len = 4
Default-storage-engine = MYISAM
Thread_stack = 192K
Transaction_isolation = Repeatable-read
Tmp_table_size = 64M
Log-bin=mysql-bin
Binlog_format=mixed
Slow_query_log
Long_query_time = 2
Server-id = 1
Key_buffer_size = 32M
Bulk_insert_buffer_size = 64M
Myisam_sort_buffer_size = 128M
Myisam_max_sort_file_size = 10G
Myisam_repair_threads = 1
Myisam_recover
Innodb_additional_mem_pool_size = 16M
Innodb_buffer_pool_size = 2G
Innodb_data_file_path = Ibdata1:10m:autoextend
Innodb_write_io_threads = 8
Innodb_read_io_threads = 8
Innodb_thread_concurrency = 16
Innodb_flush_log_at_trx_commit = 1
Innodb_log_buffer_size = 8M
Innodb_log_file_size = 256M
Innodb_log_files_in_group = 3
innodb_max_dirty_pages_pct = 90
Innodb_lock_wait_timeout = 120
[Mysqldump]
Quick
Max_allowed_packet = 16M
[MySQL]
No-auto-rehash
[Myisamchk]
Key_buffer_size = 512M
Sort_buffer_size = 512M
Read_buffer = 8M
Write_buffer = 8M
[Mysqlhotcopy]
Interactive-timeout
[Mysqld_safe]
Open-files-limit = 8192
This article is from the "funny Brother Notes" blog, be sure to keep this source http://qiuyt.blog.51cto.com/1229789/1920292
MY-INNODB-HEAVY-4G.CNF configuration file Description