You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.0 KiB
Plaintext

[mysqld]
user=mysql
basedir=/app/database/mysql
datadir=/data/3306
server_id=6
socket=/tmp/mysql.sock
bind-address = 0.0.0.0
# connect
max_connections = 1000
max_connect_errors = 200
# charset
character_set_server = utf8mb4
# InnoDB Settings
innodb_buffer_pool_size = 2G
innodb_read_io_threads = 15
innodb_write_io_threads = 15
# innodb_flush_log_at_trx_commit = 0
innodb_buffer_pool_instances = 8
innodb_log_file_size = 1G
innodb_log_buffer_size = 64M
# innodb_flush_method = O_DIRECT
innodb_page_cleaners = 16
# session memory settings
read_buffer_size = 32M
read_rnd_buffer_size = 32M
sort_buffer_size = 64M
tmp_table_size = 64M
join_buffer_size = 128M
thread_cache_size = 64
# slow log
slow_query_log = 1
slow_query_log_file = slow.log
long_query_time = 10
min_examined_row_limit = 100
log-queries-not-using-indexes
log_throttle_queries_not_using_indexes = 10
log_timestamps = system
# log settings
log_error = error.log
# client settings
[mysql]
prompt = (\\u@\\h) [\\d]>\\_
socket=/tmp/mysql.sock
no-auto-rehash