阿里云数据库配置文件

Posted littlehb

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了阿里云数据库配置文件相关的知识,希望对你有一定的参考价值。

[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

 

以上是关于阿里云数据库配置文件的主要内容,如果未能解决你的问题,请参考以下文章

Java实现操作阿里云OSS云存储详解,含配置和完整代码

Java实现操作阿里云OSS云存储详解,含配置和完整代码

阿里云数据库配置文件

阿里云虚拟主机怎么用

maven仓库配置(阿里云)

OSS上传文件到阿里云