为InnoDB配置MySQL

时间:2010-11-23 15:11:29

标签: mysql innodb

我正在将很多桌子从MyISAM转换为InnoDB(你已经说服了我),我想知道你们的MySQL配置有什么建议你们可能有...

我正在运行带有4x QUAD Core 3.0 GHz处理器的16GB RAM。

#
# * Fine Tuning
#
key_buffer              = 1024M
max_allowed_packet      = 16M
thread_stack            = 192K
thread_cache_size       = 8
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover         = BACKUP
max_connections        = 1500
table_cache            = 128
thread_concurrency     = 4
#
# * Query Cache Configuration
#
query_cache_limit       = 2M
query_cache_size        = 32M
query_cache_type        = 1
#
# * Custom Configuration
#    
tmp_table_size          = 512M
max_heap_table_size     = 128M
join_buffer_size        = 128M
myisam_sort_buffer_size = 512M