ผู้เขียน หัวข้อ: ฝาก my.cnf test  (อ่าน 3851 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

doramon

  • บุคคลทั่วไป
ฝาก my.cnf test
« เมื่อ: ตุลาคม 16, 2010, 10:14:41 AM »
0
[client]
port      = 3306
socket      = /var/lib/mysql/mysql.sock

[mysqld]
port      = 3306
datadir      = /var/lib/mysql/data
socket      = /var/lib/mysql/mysql.sock
user=mysql
back_log = 50
skip-name-resolve
max_connections = 1000
max_connect_errors = 10
table_cache = 2048
max_allowed_packet = 64M
binlog_cache_size = 32M
max_heap_table_size = 64M
lower_case_table_names=1
sort_buffer_size = 8M
join_buffer_size = 8M
thread_cache_size = 8
thread_concurrency = 8
query_cache_size = 64M
query_cache_limit = 2M
ft_min_word_len = 4
memlock
default_table_type = MYISAM
thread_stack = 192K
transaction_isolation = READ-COMMITTED
max_write_lock_count = 1
net_read_timeout = 60
tmp_table_size = 64M
log_bin = /var/lib/mysql/binlogs/mtrak32-bin
log-bin-index = /var/lib/mysql/binlogs/mtrak32-bin.index
expire_logs_days = 10
max_binlog_size=100M
max_binlog_cache_size=32M
binlog_format=MIXED
binlog-ignore-db=mysql
binlog-ignore-db=test
binlog-ignore-db=information_schema
log_warnings
long_query_time = 2
server-id = 1
key_buffer_size = 32M
read_buffer_size = 2M
read_rnd_buffer_size = 32M
bulk_insert_buffer_size = 64M
myisam_sort_buffer_size = 128M
myisam_max_sort_file_size = 10G
myisam_repair_threads = 10
innodb_file_per_table=1
innodb_additional_mem_pool_size = 20M
innodb_buffer_pool_size = 2G
innodb_data_file_path = ibdata1:100M:autoextend
innodb_read_io_threads = 20
innodb_write_io_threads = 10
innodb_thread_concurrency = 16
innodb_flush_log_at_trx_commit = 2
innodb_log_file_size = 256M
innodb_max_dirty_pages_pct = 90
innodb_flush_method = O_DIRECT
innodb_autoextend_increment = 1
innodb_open_files = 2048
sync-binlog=1
log-slave-updates
auto_increment_increment = 10
auto_increment_offset = 1
innodb_io_capacity = 1000
innodb_log_files_in_group = 3
innodb_log_buffer_size = 64M
innodb_extra_rsegments = 32
innodb_lock_wait_timeout = 120
innodb_table_locks = 0

[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
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid