my.cnf
[client]
port = 3306
default-character-set = utf8
[mysqld_safe]
default-character-set = utf8
[mysqld]
user = mysql
port = 3306
datadir = /var/lib/mysql
tmpdir = /tmp
# Log
general_log_file = mysql-general.log
general_log = 1
slow_query_log = 1
slow_query_log_file = mysql-slow.log
long_query_time = 10
server-id = 1
open_files_limit = 65535
skip-name-resolve
skip-external-locking
skip-host-cache
character-set-server = utf8
collation-server = utf8_general_ci
max_connections = 100
thread_cache_size = 100
query_cache_type = 1
query_cache_size = 256M
thread_concurrency = 2
sort_buffer_size = 25M
key_buffer = 128M
# InnoDB
innodb_buffer_pool_size = 256M
innodb_use_sys_malloc = ON
innodb_flush_method = O_DIRECT
innodb_log_file_size = 64M
innodb_log_buffer_size = 8M
innodb_thread_concurrency = 4
innodb_flush_log_at_trx_commit = 2
sync_binlog = 0
innodb_support_xa = 0
innodb_adaptive_hash_index = 1
innodb_file_per_table = 1
innodb_file_format = Barracuda
댓글 없음:
댓글 쓰기