2010-11-23 48 views
0

我转换了很多表从MyISAM的InnoDB的(你说服我),我想知道你们可能为我的MySQL配置什么建议?配置MySQL的InnoDB为

我使用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 

回答