1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
| collation-server=utf8mb4_unicode_ci character-set-server=utf8mb4
datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock
symbolic-links=0 pid-file=/var/run/mysqld/mysqld.pid
max_connections=200 max_connect_errors=100000 table_open_cache=2000 table_definition_cache=1500 thread_cache_size=16
transaction_isolation=READ-COMMITTED lower_case_table_names=1 default_time_zone=+8:00 open_files_limit=65535 log_timestamps=system wait_timeout=900 interactive_timeout=900
innodb_buffer_pool_size=4G innodb_buffer_pool_instances=4 innodb_stats_on_metadata=OFF innodb_flush_method=O_DIRECT innodb_io_capacity=2000 innodb_log_files_in_group=4
innodb_undo_tablespaces=4 innodb_undo_log_truncate=1 innodb_max_undo_log_size=1G innodb_flush_neighbors=0 innodb_print_all_deadlocks=1 innodb_online_alter_log_max_size=128M innodb_lock_wait_timeout=10 innodb_doublewrite=ON innodb_file_format=Barracuda innodb_log_file_size=512M innodb_log_buffer_size=16M innodb_flush_log_at_trx_commit=1 innodb_file_per_table=1 innodb_open_files=300
expire_logs_days=30 max_binlog_cache_size=1024M sync_binlog=1 server_id=1001 gtid-mode=on enforce-gtid-consistency=true master-info-repository=TABLE relay-log-info-repository=TABLE sync-master-info=1000
tmp_table_size=64M max_heap_table_size=64M
log_error=/var/log/mysql/mysqld.log slow_query_log=1 slow_query_log_file=/var/log/mysql/mysql-slow.log long_query_time=2 log_queries_not_using_indexes=1
|