mysqld innodb_data_home_dir var lib mysql innodb_data_file_pat ibdata1

 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
[mysqld]
innodb_data_home_dir=/var/lib/mysql
innodb_data_file_path=ibdata1:10M:autoextend
innodb_log_group_home_dir=/var/lib/mysql
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
#skip-networking
key_buffer_size = 1024M
table_open_cache=256
thread_cache_size = 64
query_cache_limit = 2M
query_cache_size = 12M
max_connections = 4000
bind-address = 0.0.0.0
sort_buffer_size = 20M
join_buffer_size = 400M
innodb = FORCE
innodb_flush_log_at_trx_commit = 2
innodb_log_buffer_size = 32M
innodb_additional_mem_pool_size = 28M
innodb_flush_method = O_DIRECT
#innodb_log_file_size = 28M
innodb_buffer_pool_size = 3G
tmp_table_size = 1G
max_heap_table_size = 2G
innodb_log_file_size = 500M
low-priority-updates
skip-name-resolve
innodb_thread_concurrency = 12
myisam_sort_buffer_size = 512M
max_join_size = 1000000
max_sort_length = 20
net_read_timeout = 12
net_write_timeout = 15
wait_timeout = 30
interactive_timeout = 600
long_query_time = 5
skip-locking
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
tmp_table_size = 3G
table_cache = 1024
#MyISAM#
#key-buffer-size = 150M
#myisam-recover = FORCE,BACKUP
[innodb]
# SAFETY #
max-allowed-packet = 16M
max-connect-errors = 1000000
# CACHES AND LIMITS #
tmp-table-size = 32M
max-heap-table-size = 32M
query-cache-type = 0
query-cache-size = 0
thread-cache-size = 50
open-files-limit = 65535
table-definition-cache = 1024
table-open-cache = 2048
innodb-flush-method = O_DIRECT
innodb-log-files-in-group = 2
innodb-flush-log-at-trx-commit = 1
innodb-file-per-table = 1
innodb_log_buffer_size = 8M