-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.cnf
40 lines (32 loc) · 1.05 KB
/
config.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
[mysql]
# CLIENT #
port = 3306
[mysqld]
# GENERAL #
user = mysql
default-storage-engine = InnoDB
# DATA STORAGE #
datadir = /var/lib/mysql/
# CACHES AND LIMITS #
tmp-table-size = 1024M
max-heap-table-size = 1024M
query-cache-type = 1
query-cache-size = 128M
query-cache-limit = 32M
max-connections = 500
thread-cache-size = 50
open-files-limit = 65535
table-definition-cache = 40960
table-open-cache = 40960
# INNODB #
innodb-flush-method = O_DIRECT
innodb-log-files-in-group = 2
innodb-log-file-size = 256M
innodb-flush-log-at-trx-commit = 2
innodb-file-per-table = 1
innodb-buffer-pool-size = 4G
# LOGGING #
log-error = /var/lib/mysql/mysql-error.log
log-queries-not-using-indexes = 1
slow-query-log = 1
slow-query-log-file = /var/lib/mysql/mysql-slow.log