summaryrefslogtreecommitdiffstats
path: root/vagrant_support/my.cnf
blob: 1f3d13546e6d52f88ffbbadd02d52fc9dbac23df (plain)
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
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0

default_storage_engine = InnoDB
key_buffer_size        = 32M
myisam_recover         = FORCE,BACKUP
max_allowed_packet     = 1G
max_connect_errors     = 1000000
innodb                 = FORCE
datadir                = /var/lib/mysql
character-set-server   = utf8
collation-server       = utf8_general_ci

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_buffer_pool_size        = 1G
innodb_file_format             = Barracuda
innodb_file_per_table          = 1
innodb_flush_log_at_trx_commit = 2
innodb_flush_method            = O_DIRECT
innodb_flush_neighbors         = 0
innodb_large_prefix            = 1
innodb_log_file_size           = 256M
innodb_log_files_in_group      = 2

log_error                      = /var/lib/mysql/mysql-error.log
log_queries_not_using_indexes  = 0
slow_query_log                 = 0
slow_query_log_file            = /var/lib/mysql/mysql-slow.log
general_log                    = 0
general_log_file               = /var/lib/mysql/bmo_query.log

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid