-
Notifications
You must be signed in to change notification settings - Fork 0
/
mysqld.cnf
43 lines (40 loc) · 1.09 KB
/
mysqld.cnf
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
[mysqld]
skip-external-locking
key_buffer_size = 16M
max_connections = 1000
max_allowed_packet = 100M
thread_stack = 192K
thread_cache_size = 8
disable_log_bin
performance_schema = ON
## allow insecure passwords
# validate_password.length=4
# validate_password.mixed_case_count=0
# validate_password.number_count=0
# validate_password.special_char_count=0
# validate_password.policy=LOW
# validate_password.check_user_name=OFF
## slow query log
slow_query_log
slow_query_log_file = mysql-slow.log
log_slow_admin_statements
log_slow_slave_statements
long_query_time = 0.1
log_queries_not_using_indexes
log_throttle_queries_not_using_indexes = 10
## innodb
innodb_buffer_pool_size = 512M
innodb_log_buffer_size = 16M
innodb_log_file_size = 512M
innodb_doublewrite = 0
innodb_read_io_threads = 8
innodb_write_io_threads = 8
innodb_lock_wait_timeout = 5
innodb_autoinc_lock_mode = 2
innodb_flush_log_at_trx_commit = 0
innodb_flush_method = O_DIRECT
innodb_file_per_table
innodb_print_all_deadlocks
innodb_buffer_pool_dump_at_shutdown = 1
innodb_buffer_pool_load_at_startup = 1
innodb_monitor_enable = all