阿里云数据库配置文件

[client]
port        = 22066
socket        = /usr/local/mysql/mysql.sock

[mysqld]
port        = 22066
socket        = /usr/local/mysql/mysql.sock
skip-external-locking
skip-name-resolve
back_log = 50
max_connections = 2048
max_connect_errors = 1000
table_open_cache = 1024
open_files_limit=16384
max_allowed_packet = 16M
binlog_cache_size = 1M
max_heap_table_size = 64M
read_buffer_size = 2M
read_rnd_buffer_size = 16M
sort_buffer_size = 2M
join_buffer_size = 2M
thread_cache_size = 64
query_cache_size = 64M
query_cache_limit = 4M

# HuangHai modify at 2018-06-21
#wait_timeout=28800
#interactive_timeout=28800
wait_timeout=35
interactive_timeout=35

max_heap_table_size = 2048M 
tmp_table_size = 2048M

ft_min_word_len = 4
default-storage-engine = InnoDB
thread_stack = 240K
transaction_isolation = REPEATABLE-READ
tmp_table_size = 512M
#log-bin=mysql-bin
expire_logs_days=3
#binlog_format=ROW
server-id = 1
slow_query_log
long_query_time = 2
log_bin_trust_function_creators=1
group_concat_max_len=200000
lower_case_table_names=1
innodb_file_per_table=1

#*** MyISAM Specific options
key_buffer_size = 32M
bulk_insert_buffer_size = 64M
myisam_sort_buffer_size = 128M
myisam_max_sort_file_size = 10G
myisam_repair_threads = 1
myisam_recover_options=force,backup

# *** INNODB Specific options ***
innodb_open_files=1024
innodb_buffer_pool_size = 2G
innodb_data_file_path = ibdata1:10M:autoextend
innodb_write_io_threads = 8
innodb_read_io_threads = 8
innodb_thread_concurrency = 8
innodb_flush_log_at_trx_commit = 0
innodb_log_buffer_size = 8M
innodb_log_file_size = 2048M
transaction-isolation=READ-UNCOMMITTED

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

[myisamchk]
key_buffer_size = 512M
sort_buffer_size = 512M
read_buffer_size = 8M
write_buffer_size = 8M

[mysqlhotcopy]
interactive-timeout

[mysqld_safe]
open-files-limit = 8192

参考阅读:https://blog.csdn.net/aibisoft/article/details/22658055

猜你喜欢

转载自www.cnblogs.com/littlehb/p/11013584.html
今日推荐