MySQL5.7 配置文件

# For advice on how to change settings please seehtml

# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.htmlmysql

# *** DO NOT EDIT THIS FILE. It's a template which will be copied to thesql

# *** default location during install, and will be replaced if youui

# *** upgrade to a newer version of MySQL.spa

[mysqld]
orm

# Remove leading # and set to the amount of RAM for the most important data
server

# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.htm

# innodb_buffer_pool_size = 128Mci

# Remove leading # to turn on a very important data integrity option: logging
rem

# changes to the binary log between backups.

# log_bin

# These are commonly set, remove the # and set as required.

# basedir = .....

# datadir = .....

# port = .....

# server_id = .....

# Remove leading # to set options mainly useful for reporting servers.

# The server defaults are faster for transactions and fast SELECTs.

# Adjust sizes as needed, experiment to find the optimal values.

join_buffer_size = 128M

sort_buffer_size = 2M

read_rnd_buffer_size = 2M 

sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 

read_buffer_size = 16777216

########innodb settings########

innodb_page_size = 8192

innodb_buffer_pool_size = 3G

innodb_buffer_pool_instances = 8

innodb_buffer_pool_load_at_startup = 1

innodb_buffer_pool_dump_at_shutdown = 1

innodb_lru_scan_depth = 2000

innodb_lock_wait_timeout = 5

innodb_io_capacity = 800

innodb_flush_method = O_DIRECT

innodb_file_format = Barracuda

innodb_file_format_max = Barracuda

innodb_log_group_home_dir = /redolog/

innodb_undo_directory = /undolog/

innodb_undo_logs = 128

innodb_undo_tablespaces = 3

innodb_flush_neighbors = 1

innodb_log_file_size = 2G

innodb_log_buffer_size = 16777216

innodb_purge_threads = 4

innodb_large_prefix = 1

innodb_thread_concurrency = 64

innodb_print_all_deadlocks = 1

innodb_strict_mode = 1

innodb_sort_buffer_size = 67108864 

innodb_buffer_pool_dump_pct = 40

innodb_page_cleaners = 4

innodb_undo_log_truncate = 1

innodb_max_undo_log_size = 2G

innodb_purge_rseg_truncate_frequency = 128

binlog_gtid_simple_recovery=1

log_timestamps=system

transaction_write_set_extraction=MURMUR32

show_compatibility_56=on

相關文章
相關標籤/搜索