Chinaunix首页 | 论坛 | 博客
  • 博客访问: 238284
  • 博文数量: 79
  • 博客积分: 1942
  • 博客等级: 上尉
  • 技术积分: 910
  • 用 户 组: 普通用户
  • 注册时间: 2008-05-19 16:17
文章分类

全部博文(79)

文章存档

2011年(1)

2010年(50)

2009年(28)

分类: LINUX

2009-08-18 18:09:59

内存 8G

[client]
port  = 3306
socket  = /home/mysql/mysql.sock

[mysqld]
port  = 3306
socket  = /home/mysql/mysql.sock
datadir         = /home/mysql/var

server-id = 1
log-bin  = /data/mysqllog/binlog/mysql-bin

skip-name-resolve
default-character-set  = utf8

back_log   = 50
max_connections  = 1000
max_connect_errors  = 32
max_allowed_packet  = 16M

table_cache   = 2048
binlog_cache_size  = 1M
max_heap_table_size  = 64M
tmp_table_size   = 64M

key_buffer_size  = 32M
read_buffer_size  = 2M
read_rnd_buffer_size  = 16M
bulk_insert_buffer_size = 64M
sort_buffer_size  = 8M
join_buffer_size  = 8M

thread_cache_size  = 8
thread_concurrency  = 8
thread_stack   = 192K

query_cache_size  = 64M
query_cache_limit  = 2M
tmp_table_size   = 64M

ft_min_word_len  = 2
default_table_type  = INNODB
transaction_isolation  = REPEATABLE-READ

log_slow_queries
long_query_time = 2
log_long_format

myisam_sort_buffer_size  = 128M
myisam_max_sort_file_size  = 10G
myisam_max_extra_sort_file_size = 10G
myisam_repair_threads   = 1
myisam_recover

innodb_additional_mem_pool_size = 16M
innodb_buffer_pool_size  = 2G
innodb_data_file_path   = ibdata1:2048M;ibdata2:2048M;ibdata3:2048M;ibdata4:2048M;ibdata5:2048M;ibdata6:1024M:autoextend
innodb_file_io_threads   = 4
innodb_thread_concurrency  = 16
innodb_flush_log_at_trx_commit  = 1
innodb_log_buffer_size   = 8M
innodb_log_file_size   = 256M
innodb_log_files_in_group  = 3
innodb_max_dirty_pages_pct  = 90
innodb_lock_wait_timeout  = 120

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash

[isamchk]
key_buffer   = 512M
sort_buffer_size = 512M
read_buffer   = 8M
write_buffer   = 8M

[myisamchk]
key_buffer   = 512M
sort_buffer_size = 512M
read_buffer   = 8M
write_buffer   = 8M

[mysqlhotcopy]
interactive-timeout

[mysqld_safe]
open-files-limit = 8192

阅读(809) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~