打印本文 打印本文 关闭窗口 关闭窗口
有效配置MySQL参数
作者:武汉SEO闵涛  文章来源:敏韬网  点击数2983  更新时间:2009/4/22 20:48:59  文章录入:mintao  责任编辑:mintao
The size of each log file in a log group. The default is 5MB. The larger the value, the less checkpoint flush activity is needed in the buffer pool, saving disk I/O. But large log files also mean that recovery will be slower in case of a crash.

根据MySQL手册,推荐值是innodb_buffer_pool_size25%

注意:在重新设置该值时,好像要把原来的文件删除掉。

innodb_log_buffer_size

The size of the buffer that InnoDB uses to write to the log files on disk. Sensible values range from 1MB to 8MB. The default is 1MB. A large log buffer allows large transactions to run without a need to write the log to disk before the transactions commit. Thus, if you have big transactions, making the log buffer larger will save disk I/O.

根据MySQL手册,推荐值是8M

innodb_additional_mem_pool_size

该参数指定InnoDB用来存储数据字典和其他内部数据结构的内存池大小。缺省值是1M。通常不用太大,只要够用就行,应该与表结构的复杂度有关系。如果不够用,MySQL会在错误日志中写入一条警告信息。

根据MySQL手册,对于2G内存的机器,推荐值是20M

 

SHOW INNODB STATUS

显示InnoDB存储引擎的状态

上一页  [1] [2] [3] [4] 

打印本文 打印本文 关闭窗口 关闭窗口