MySQL社区

标题: 求教:16G内存my.ini配置 [打印本页]

作者: webmail    时间: 2009-6-18 16:36
标题: 求教:16G内存my.ini配置
2003server+IIS6.0+PHP+MYSQL下
针对16G内存,8核2.33G CPU
只使用MyISAM
主要任务:查询
次要任务:写入数据
连接数量较多的mysql服务器
下边是默认生成的my.ini,请帮忙配置,谢谢。
[client]
port=3306
[mysql]
default-character-set=utf8
[mysqld]
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
先参考:
http://www.mysqlpub.com/viewthre ... light=key%5C_buffer

http://www.mysqlpub.com/search.p ... mp;searchsubmit=yes
作者: 玮玮来啦    时间: 2009-9-15 22:50
我也想求四核4G的 mysql优化配制说明。
作者: kider    时间: 2009-9-16 09:49
这个优化是根据业务紧密联系的,业务类型的不同会表现出不同的效果。

如果只是用MyISAM表类型,那么把Innodb的那部分配置关闭较好...




欢迎光临 MySQL社区 (http://mysqlpub.com/) Powered by Discuz! X3.2