mysql-5.7.28-linux-glibc2.12-x86_64配置(参考)
短信预约 信息系统项目管理师 报名、考试、查分时间动态提醒
[client]
socket = /data/mysql/var/mysql.sock
port = 3306
[mysqld]
#######################GENERIC##################
autocommit = OFF
connect_timeout = 10
default_authentication_plugin = mysql_native_password
default_storage_engine = InnoDB
event_scheduler = ON
interactive_timeout = 600
wait_timeout = 600
lower_case_table_names = 1
max_sort_length = 8192
max_allowed_packet = 1073741824
max_connect_errors = 100000
max_connections = 2000
max_execution_time = 0
max_user_connections = 1000
open_files_limit = 65536
net_buffer_length = 16384
port = 3306
read_only = OFF
skip_name_resolve = ON
sort_buffer_size = 2097152
read_rnd_buffer_size = 2097152
join_buffer_size = 2097152
lock_wait_timeout = 50
long_query_time = 10.000000
sync_binlog = 1
sql_mode = ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
table_open_cache = 2000
table_open_cache_instances = 8
thread_cache_size = 9
transaction_isolation = READ-COMMIT
##########################PATH##################
basedir = /data/mysql/mysql/base
datadir = /data/mysql/data
innodb_data_home_dir = /data/mysql/data
tmpdir = /data/mysql/tmp
innodb_tmpdir = /data/mysql/tmp
pid_file = /data/mysql/var/mysql.pid
socket = /data/mysql/var/mysql.sock
log_bin = /data/mysql/log/mysql-bin
log_bin_index = /data/mysql/log/mysql-bin.index
log_error = /data/mysql/log/error.log
slow_query_log_file = /data/mysql/log/localhost-slow.log
relay_log = /data/mysql/log/relay-log
relay_log_index = /data/mysql/log/relay-log.index
relay_log_info_file = /data/mysql/log/relay-log.info
ssl-ca = /data/mysql/ssl/ca.pem
ssl-cert = /data/mysql/ssl/server-cert.pem
ssl-key = /data/mysql/ssl/server-key.pe
#########################GTID###################
gtid_mode = ON
enforce_gtid_consistency = ON
log_slave_updates = ON
#######################INNODB###################
innodb_buffer_pool_chunk_size = 134217728
innodb_buffer_pool_filename = ib_buffer_pool
innodb_buffer_pool_instances = 8
innodb_buffer_pool_size = 4294967296
innodb_change_buffer_max_size = 25
innodb_checksum_algorithm = strict_crc32
innodb_concurrency_tickets = 5000
innodb_data_file_path = ibdata1:12M;ibdata2:500M:autoextend
innodb_deadlock_detect = ON
innodb_doublewrite = ON
innodb_fast_shutdown = 1
innodb_file_per_table = ON
innodb_flush_log_at_trx_commit = 1
innodb_flush_neighbors = 1
innodb_flush_method = O_DIRECT
innodb_io_capacity = 100
innodb_io_capacity_max = 400
innodb_lock_wait_timeout = 50
innodb_log_buffer_size = 16777216
innodb_log_checksums = ON
innodb_log_compressed_pages = ON
innodb_log_file_size = 1073741824
innodb_log_files_in_group = 4
innodb_max_undo_log_size = 1073741824
innodb_online_alter_log_max_size = 134217728
innodb_open_files = 300
innodb_page_size = 16384
###########################LOG##################
binlog_cache_size = 32768
binlog_checksum = CRC32
binlog_format = ROW
binlog_rows_query_log_events = ON
expire_logs_days = 7
general_log = OFF
log_error_verbosity = 3
log_output = FILE
log_queries_not_using_indexes = ON
relay_log_info_repository = FILE
relay_log_purge = ON
slow_query_log = ON
max_binlog_size = 1073741824
max_relay_log_size = 0
#####################REPLICATION#################
server_id = 1723111203
slave_max_allowed_packet = 1073741824
slave_parallel_type = LOGICAL_CLOCK
slave_parallel_workers = 4
binlog_transaction_dependency_tracking = WRITESET
binlog_transaction_dependency_history_size = 25000
transaction_write_set_extraction = XXHASH64
sync_master_info = 10000
sync_relay_log = 10000
sync_relay_log_info = 10000
免责声明:
① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。
② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341