-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmy.cnf
102 lines (87 loc) · 2.55 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[client]
port = 3306
socket = /tmp/mysql.sock
[mysqld]
port = 3306
socket = /tmp/mysql.sock
datadir = /export/MySQLData
#--- GLOBAL ---#
character-set-server = utf8
lower_case_table_names = 1
log-output = FILE
log-error = /export/Log/mysql/mysql_error.log
general_log
general_log_file = /export/Log/mysql/general.log
pid-file = /tmp/mysql.pid
slow-query-log
slow_query_log_file = /export/Log/mysql/mysql_slow.log
tmpdir = /tmp/
long_query_time = 0.1
#sync_binlog = 1
#--------------#
thread_concurrency = 16
thread_cache_size = 512
table_open_cache = 16384
table_definition_cache = 16384
sort_buffer_size = 2M
join_buffer_size = 2M
read_buffer_size = 4M
read_rnd_buffer_size = 4M
key_buffer_size = 64M
myisam_sort_buffer_size = 64M
tmp_table_size = 256M
max_heap_table_size = 256M
open_files_limit = 65535
#query_cache_size = 2G
#--- NETWORK ---#
back_log = 1024
max_allowed_packet = 16M
interactive_timeout = 2147483
wait_timeout = 2147483
skip-external-locking
max-connections = 510
max_user_connections = 500
skip-name-resolve
#--- REPL ---#
server-id = 1
log-bin = mysql-bin
binlog_format = mixed
expire_logs_days = 7
relay-log = relay-log
replicate-ignore-db = test
log_slave_updates
skip-slave-start
#--- INNODB ---#
default-storage-engine = INNODB
innodb_data_home_dir = /export/MySQLData
innodb_data_file_path = ibdata1:1G;ibdata2:1G:autoextend
innodb_autoextend_increment = 500
innodb_log_group_home_dir = /export/MySQLData
innodb_buffer_pool_size = 2G
innodb_additional_mem_pool_size = 128M
innodb_log_files_in_group = 3
innodb_log_file_size = 512M
innodb_log_buffer_size = 8M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 120
innodb_flush_method = O_DIRECT
innodb_max_dirty_pages_pct = 75
innodb_io_capacity = 1000
innodb_thread_concurrency = 32
innodb_open_files = 65535
innodb_file_per_table = 1
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
default-character-set=utf8
[myisamchk]
key_buffer_size = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout