-
Notifications
You must be signed in to change notification settings - Fork 0
/
my.cnf
72 lines (55 loc) · 1.81 KB
/
my.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
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
# Generated by Percona Configuration Wizard (http://tools.percona.com/) version REL5-20120208
[client]
default-character-set=utf8
[mysql]
# CLIENT #
port = 3306
default-character-set=utf8
[mysqld]
# GENERAL #
default_storage_engine = InnoDB
character-set-server = utf8
# MyISAM #
key_buffer_size = 32M
myisam_recover = FORCE,BACKUP
# SAFETY #
max_allowed_packet = 16M
max_connect_errors = 1000000
skip_name_resolve
sql_mode = STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_AUTO_VALUE_ON_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_IN_DATE,ONLY_FULL_GROUP_BY,NO_UNSIGNED_SUBTRACTION
sysdate_is_now = 1
innodb = FORCE
innodb_strict_mode = 1
# DATA STORAGE #
# BINARY LOGGING #
expire_logs_days = 14
sync_binlog = 1
# CACHES AND LIMITS #
tmp_table_size = 32M
max_heap_table_size = 32M
query_cache_type = 0
query_cache_size = 0
max_connections = 500
thread_cache_size = 50
open_files_limit = 65535
table_definition_cache = 1024
table_open_cache = 2048
# INNODB #
innodb_flush_method = O_DIRECT
innodb_log_files_in_group = 2
innodb_log_file_size = 5M
innodb_flush_log_at_trx_commit = 1
innodb_file_per_table = 1
innodb_buffer_pool_size = 1G
# LOGGING #
log_queries_not_using_indexes = 1
slow_query_log = 1
long_query_time = 0.5
symbolic-links=0
server-id=1
# Fix some terrible mysql defaults
# http://jeremy.zawodny.com/blog/archives/011421.html
slave_net_timeout=60
# UTF8 EVERYWHERE
collation-server = utf8_unicode_ci
init-connect='SET NAMES utf8'