mirror of
https://github.com/aljazceru/ansible-role-mysql.git
synced 2025-12-24 07:54:21 +01:00
Add files, handlers, tasks, vars, and meta information.
This commit is contained in:
38
files/my.cnf
Normal file
38
files/my.cnf
Normal file
@@ -0,0 +1,38 @@
|
||||
[mysqld]
|
||||
datadir=/var/lib/mysql
|
||||
socket=/var/lib/mysql/mysql.sock
|
||||
|
||||
# Disabling symbolic-links is recommended to prevent assorted security risks
|
||||
symbolic-links=0
|
||||
|
||||
# Settings user and group are ignored when systemd is used (fedora >= 15).
|
||||
# If you need to run mysqld under a different user or group,
|
||||
# customize your systemd unit file for mysqld according to the
|
||||
# instructions in http://fedoraproject.org/wiki/Systemd
|
||||
user=mysql
|
||||
|
||||
# Semisynchronous Replication
|
||||
# http://dev.mysql.com/doc/refman/5.5/en/replication-semisync.html
|
||||
# uncomment next line on MASTER
|
||||
;plugin-load=rpl_semi_sync_master=semisync_master.so
|
||||
# uncomment next line on SLAVE
|
||||
;plugin-load=rpl_semi_sync_slave=semisync_slave.so
|
||||
|
||||
# Others options for Semisynchronous Replication
|
||||
;rpl_semi_sync_master_enabled=1
|
||||
;rpl_semi_sync_master_timeout=10
|
||||
;rpl_semi_sync_slave_enabled=1
|
||||
|
||||
# http://dev.mysql.com/doc/refman/5.5/en/performance-schema.html
|
||||
;performance_schema
|
||||
|
||||
# Customizations for local development.
|
||||
wait_timeout = 28800
|
||||
max_allowed_packet = 64M
|
||||
innodb_file_per_table = 1 # Allows for recovery of disk space when table are removed
|
||||
innodb_buffer_pool_size = 128M # Up to 80% of available RAM on a dedicated box
|
||||
innodb_flush_log_at_trx_commit = 2 # 1 for durability, 0 or 2 for performance
|
||||
|
||||
[mysqld_safe]
|
||||
log-error=/var/log/mysqld.log
|
||||
pid-file=/var/run/mysqld/mysqld.pid
|
||||
Reference in New Issue
Block a user