| 4 |
- |
1 |
[mysqld]
|
| 10 |
- |
2 |
innodb_file_per_table
|
| 4 |
- |
3 |
datadir=/var/lib/mysql
|
|
|
4 |
socket=/var/lib/mysql/mysql.sock
|
|
|
5 |
# Settings user and group are ignored when systemd is used (fedora >= 15).
|
|
|
6 |
# If you need to run mysqld under different user or group,
|
|
|
7 |
# customize your systemd unit file for mysqld according to the
|
|
|
8 |
# instructions in http://fedoraproject.org/wiki/Systemd
|
|
|
9 |
user=mysql
|
|
|
10 |
# Disabling symbolic-links is recommended to prevent assorted security risks
|
|
|
11 |
symbolic-links=0
|
|
|
12 |
key_buffer = 640M
|
|
|
13 |
table_cache = 1280
|
|
|
14 |
sort_buffer_size = 2M
|
|
|
15 |
myisam_sort_buffer_size = 8M
|
|
|
16 |
query_cache_size = 160M
|
|
|
17 |
thread_cache_size = 12
|
|
|
18 |
innodb_buffer_pool_size = 4G
|
|
|
19 |
join_buffer_size = 32k
|
|
|
20 |
|
|
|
21 |
# Semisynchronous Replication
|
|
|
22 |
# http://dev.mysql.com/doc/refman/5.5/en/replication-semisync.html
|
|
|
23 |
# uncomment next line on MASTER
|
|
|
24 |
;plugin-load=rpl_semi_sync_master=semisync_master.so
|
|
|
25 |
# uncomment next line on SLAVE
|
|
|
26 |
;plugin-load=rpl_semi_sync_slave=semisync_slave.so
|
|
|
27 |
|
|
|
28 |
# Others options for Semisynchronous Replication
|
|
|
29 |
;rpl_semi_sync_master_enabled=1
|
|
|
30 |
;rpl_semi_sync_master_timeout=10
|
|
|
31 |
;rpl_semi_sync_slave_enabled=1
|
|
|
32 |
|
|
|
33 |
# http://dev.mysql.com/doc/refman/5.5/en/performance-schema.html
|
|
|
34 |
;performance_schema
|
|
|
35 |
|
|
|
36 |
[mysqld_safe]
|
|
|
37 |
log-error=/var/log/mysqld.log
|
|
|
38 |
pid-file=/var/run/mysqld/mysqld.pid
|