2012-08-16 03:03:37 +02:00
|
|
|
[client]
|
2013-05-24 16:01:52 +02:00
|
|
|
port = <%= @port %>
|
|
|
|
socket = <%= @socket %>
|
2012-08-16 03:03:37 +02:00
|
|
|
[mysqld_safe]
|
2013-05-24 16:01:52 +02:00
|
|
|
socket = <%= @socket %>
|
2012-08-16 03:03:37 +02:00
|
|
|
nice = 0
|
2013-05-24 16:01:52 +02:00
|
|
|
<% if @log_error == 'syslog' -%>
|
2012-11-16 20:37:14 +01:00
|
|
|
syslog
|
|
|
|
<% end -%>
|
2011-06-22 20:38:11 +02:00
|
|
|
[mysqld]
|
2012-08-16 03:03:37 +02:00
|
|
|
user = mysql
|
2013-05-24 16:01:52 +02:00
|
|
|
pid-file = <%= @pidfile %>
|
|
|
|
socket = <%= @socket %>
|
|
|
|
port = <%= @port %>
|
|
|
|
basedir = <%= @basedir %>
|
|
|
|
datadir = <%= @datadir %>
|
2013-06-25 23:50:06 +02:00
|
|
|
tmpdir = <%= @tmpdir %>
|
2012-08-16 03:03:37 +02:00
|
|
|
skip-external-locking
|
2012-07-20 02:29:28 +02:00
|
|
|
|
2013-05-24 16:01:52 +02:00
|
|
|
<% if @bind_address %>
|
|
|
|
bind-address = <%= @bind_address %>
|
2012-07-20 02:29:28 +02:00
|
|
|
<% end %>
|
|
|
|
|
2012-08-16 03:03:37 +02:00
|
|
|
key_buffer = 16M
|
2013-06-26 00:03:12 +02:00
|
|
|
max_allowed_packet = <%= @max_allowed_packet %>
|
2012-08-16 03:03:37 +02:00
|
|
|
thread_stack = 192K
|
|
|
|
thread_cache_size = 8
|
|
|
|
myisam-recover = BACKUP
|
|
|
|
query_cache_limit = 1M
|
|
|
|
query_cache_size = 16M
|
2013-05-24 16:01:52 +02:00
|
|
|
<% if @log_error != 'syslog' -%>
|
|
|
|
log_error = <%= @log_error %>
|
2012-11-16 20:37:14 +01:00
|
|
|
<% end -%>
|
2012-08-16 03:03:37 +02:00
|
|
|
expire_logs_days = 10
|
|
|
|
max_binlog_size = 100M
|
2013-05-29 14:16:48 +02:00
|
|
|
<% if @default_engine != 'UNSET' %>
|
2013-05-24 16:01:52 +02:00
|
|
|
default-storage-engine = <%= @default_engine %>
|
2012-05-15 17:55:42 +02:00
|
|
|
<% end %>
|
2013-05-24 16:01:52 +02:00
|
|
|
<% if @ssl == true %>
|
|
|
|
ssl-ca = <%= @ssl_ca %>
|
|
|
|
ssl-cert = <%= @ssl_cert %>
|
|
|
|
ssl-key = <%= @ssl_key %>
|
2012-03-20 00:24:01 +01:00
|
|
|
<% end %>
|
|
|
|
|
2011-06-22 20:38:11 +02:00
|
|
|
[mysqldump]
|
|
|
|
quick
|
|
|
|
quote-names
|
2013-06-26 00:03:12 +02:00
|
|
|
max_allowed_packet = <%= @max_allowed_packet %>
|
2011-06-22 20:38:11 +02:00
|
|
|
[mysql]
|
2012-08-16 03:03:37 +02:00
|
|
|
[isamchk]
|
|
|
|
key_buffer = 16M
|
2011-06-22 20:38:11 +02:00
|
|
|
!includedir /etc/mysql/conf.d/
|