1
+ [client]
2
+ user = root
3
+ # password = your_password
4
+ port = 33206
5
+ socket = {$SERVER_APP_PATH}/mysql.sock
6
+ default-character-set = UTF8MB4
7
+
8
+ [mysqld]
9
+ !include {$SERVER_APP_PATH}/etc/mode/classic.cnf
10
+
11
+ authentication_policy =caching_sha2_password
12
+ pid-file = {$SERVER_APP_PATH}/data/mysql.pid
13
+ user = mysql
14
+ port = 33206
15
+ mysqlx_port = 33260
16
+ socket = {$SERVER_APP_PATH}/mysql.sock
17
+ datadir = {$SERVER_APP_PATH}/data
18
+ log-error = {$SERVER_APP_PATH}/data/error.log
19
+ server-id = {$SERVER_ID}
20
+
21
+ default_storage_engine = InnoDB
22
+
23
+ key_buffer_size = 8M
24
+ table_open_cache = 32
25
+ sort_buffer_size = 256K
26
+ net_buffer_length = 4K
27
+ read_buffer_size = 128K
28
+ read_rnd_buffer_size = 256K
29
+ myisam_sort_buffer_size = 4M
30
+ thread_cache_size = 4
31
+ lower_case_table_names =1
32
+ tmp_table_size = 8M
33
+ character-set-server = UTF8MB4
34
+
35
+ max_connections = 500
36
+ max_connect_errors = 100
37
+ open_files_limit = 2560
38
+ max_allowed_packet = 128M
39
+
40
+ # skip-external-locking
41
+ # skip-grant-tables
42
+ # loose-skip-innodb
43
+ # skip-networking
44
+ # skip-name-resolve
45
+
46
+ log-bin =mysql-bin
47
+ slow_query_log =1
48
+ slow-query-log-file ={$SERVER_APP_PATH}/data/mysql-slow.log
49
+ long_query_time =3
50
+ # log_queries_not_using_indexes=on
51
+
52
+ relay-log =mdserver
53
+ relay-log-index =mdserver
54
+
55
+ # master
56
+ # sync_binlog=1
57
+
58
+ # binlog-do-db
59
+ binlog-ignore-db = test
60
+ binlog-ignore-db = mysql
61
+ binlog-ignore-db = information_schema
62
+ binlog-ignore-db = performance_schema
63
+
64
+ # slave
65
+ log_replica_updates
66
+ # replicate-do-db
67
+ replica_skip_errors =1062,1396
68
+ replicate-ignore-db = information_schema
69
+ replicate-ignore-db = performance_schema
70
+ replicate-ignore-db = mysql
71
+ replicate-ignore-db = test
72
+
73
+ default_storage_engine = InnoDB
74
+ innodb_data_home_dir = {$SERVER_APP_PATH}/data
75
+ innodb_data_file_path = ibdata1:10M:autoextend
76
+ innodb_log_group_home_dir = {$SERVER_APP_PATH}/data
77
+ innodb_buffer_pool_size = 16M
78
+ innodb_redo_log_capacity =10485760
79
+ innodb_log_buffer_size = 8M
80
+ innodb_flush_log_at_trx_commit = 1
81
+ innodb_lock_wait_timeout = 120
82
+ innodb_max_dirty_pages_pct = 90
83
+ innodb_read_io_threads = 1
84
+ innodb_write_io_threads = 1
85
+ innodb_file_per_table =1
86
+ binlog_expire_logs_seconds =604800
87
+
88
+ secure-file-priv ={$SERVER_APP_PATH}/tmp
89
+
90
+ [mysqldump]
91
+ quick
92
+
93
+ [mysql]
94
+ no-auto-rehash
95
+
96
+ [myisamchk]
97
+ key_buffer_size = 20M
98
+ sort_buffer_size = 20M
99
+ read_buffer = 2M
100
+ write_buffer = 2M
101
+
102
+ [mysqlhotcopy]
103
+ interactive-timeout
0 commit comments