webmail 发表于 2009-6-18 16:36:04

求教:16G内存my.ini配置

2003server+IIS6.0+PHP+MYSQL下
针对16G内存,8核2.33G CPU
只使用MyISAM
主要任务:查询
次要任务:写入数据
连接数量较多的mysql服务器
下边是默认生成的my.ini,请帮忙配置,谢谢。

port=3306

default-character-set=utf8

port=3306
basedir="D:/php/mysql/"
datadir="D:/php/data/"
default-character-set=utf8
default-storage-engine=MYISAM
max_connections=500
query_cache_size=91M
table_cache=1000
tmp_table_size=54M
thread_cache_size=23
myisam_max_sort_file_size=100G
myisam_max_extra_sort_file_size=100G
myisam_sort_buffer_size=54M
key_buffer_size=283M
read_buffer_size=64K
read_rnd_buffer_size=256K
sort_buffer_size=256K
#*** INNODB Specific options ***
skip-innodb
innodb_additional_mem_pool_size=2M
innodb_flush_log_at_trx_commit=1
innodb_log_buffer_size=1M
innodb_buffer_pool_size=8M
innodb_log_file_size=10M
innodb_thread_concurrency=18

kider 发表于 2009-6-18 17:10:30

先参考:
http://www.mysqlpub.com/viewthread.php?tid=329&highlight=key%5C_buffer

http://www.mysqlpub.com/search.php?searchid=8&orderby=lastpost&ascdesc=desc&searchsubmit=yes

玮玮来啦 发表于 2009-9-15 22:50:35

我也想求四核4G的 mysql优化配制说明。

kider 发表于 2009-9-16 09:49:39

这个优化是根据业务紧密联系的,业务类型的不同会表现出不同的效果。

如果只是用MyISAM表类型,那么把Innodb的那部分配置关闭较好...
页: [1]
查看完整版本: 求教:16G内存my.ini配置