2012-08-16 03:03:37 +02:00
|
|
|
[client]
|
2013-06-16 17:41:29 +02:00
|
|
|
port = <%= @port %>
|
|
|
|
socket = <%= @socket %>
|
2013-06-10 14:36:41 +02:00
|
|
|
<% if @character_set != 'UNSET' -%>
|
|
|
|
default-character-set = <%= @character_set %>
|
2013-06-16 17:41:29 +02:00
|
|
|
<% end -%>
|
|
|
|
|
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 %>
|
2013-06-24 16:38:48 +02:00
|
|
|
max_connections = <%= @max_connections %>
|
2012-08-16 03:03:37 +02:00
|
|
|
skip-external-locking
|
2012-07-20 02:29:28 +02:00
|
|
|
|
2013-06-16 17:41:29 +02:00
|
|
|
<% if @bind_address -%>
|
2013-06-10 14:36:41 +02:00
|
|
|
bind-address = <%= @bind_address %>
|
2013-04-08 17:23:24 +02:00
|
|
|
<% end -%>
|
2013-06-10 14:36:41 +02:00
|
|
|
key_buffer = <%= @key_buffer %>
|
|
|
|
max_allowed_packet = <%= @max_allowed_packet %>
|
|
|
|
thread_stack = <%= @thread_stack %>
|
|
|
|
thread_cache_size = <%= @thread_cache_size %>
|
|
|
|
myisam-recover = <%= @myisam_recover %>
|
|
|
|
query_cache_limit = <%= @query_cache_limit %>
|
|
|
|
query_cache_size = <%= @query_cache_size %>
|
|
|
|
expire_logs_days = <%= @expire_logs_days %>
|
|
|
|
max_binlog_size = <%= @max_binlog_size %>
|
2013-04-07 22:20:36 +02:00
|
|
|
|
2013-06-10 14:36:41 +02:00
|
|
|
<% if @max_connections != 'UNSET' -%>
|
|
|
|
max_connections = <%= @max_connections %>
|
2013-04-07 22:20:36 +02:00
|
|
|
<% end -%>
|
2013-06-10 14:36:41 +02:00
|
|
|
<% if @tmp_table_size != 'UNSET' -%>
|
|
|
|
tmp_table_size = <%= @tmp_table_size %>
|
2013-04-07 22:20:36 +02:00
|
|
|
<% end -%>
|
2013-06-10 14:36:41 +02:00
|
|
|
<% if @max_heap_table_size != 'UNSET' -%>
|
|
|
|
max_heap_table_size = <%= @max_heap_table_size %>
|
2013-04-07 22:20:36 +02:00
|
|
|
<% end -%>
|
2013-06-10 14:36:41 +02:00
|
|
|
<% if @table_open_cache != 'UNSET' -%>
|
|
|
|
table_open_cache = <%= @table_open_cache %>
|
2013-04-07 22:20:36 +02:00
|
|
|
<% end -%>
|
2013-06-10 14:36:41 +02:00
|
|
|
<% if @long_query_time != 'UNSET' -%>
|
|
|
|
long_query_time = <%= @long_query_time %>
|
2013-04-07 22:20:36 +02:00
|
|
|
<% end -%>
|
2013-06-10 14:36:41 +02:00
|
|
|
<% if @server_id != 'UNSET' -%>
|
|
|
|
server-id = <%= @server_id %>
|
2013-04-08 17:23:24 +02:00
|
|
|
<% end -%>
|
2013-06-10 14:36:41 +02:00
|
|
|
<% if @sql_log_bin != 'UNSET' -%>
|
|
|
|
sql_log_bin = <%= @sql_log_bin %>
|
2013-04-08 17:23:24 +02:00
|
|
|
<% end -%>
|
2013-06-10 14:36:41 +02:00
|
|
|
<% if @log_bin != 'UNSET' -%>
|
|
|
|
log-bin = <%= @log_bin %>
|
2013-04-08 17:23:24 +02:00
|
|
|
<% end -%>
|
2013-06-10 14:36:41 +02:00
|
|
|
<% if @binlog_do_db != 'UNSET' -%>
|
|
|
|
binlog-do-db = <%= @binlog_do_db %>
|
2013-04-08 17:23:24 +02:00
|
|
|
<% end -%>
|
2013-06-10 14:36:41 +02:00
|
|
|
<% if @log_bin_trust_function_creators != 'UNSET' -%>
|
|
|
|
log_bin_trust_function_creators = <%= @log_bin_trust_function_creators %>
|
2013-04-08 17:23:24 +02:00
|
|
|
<% end -%>
|
2013-06-10 14:36:41 +02:00
|
|
|
<% if @replicate_ignore_table != 'UNSET' -%>
|
|
|
|
replicate-ignore-table = <%= @replicate_ignore_table %>
|
2013-04-08 17:23:24 +02:00
|
|
|
<% end -%>
|
2013-06-10 14:36:41 +02:00
|
|
|
<% if @replicate_wild_do_table != 'UNSET' -%>
|
|
|
|
replicate-wild-do-table = <%= @replicate_wild_do_table %>
|
2013-04-08 17:23:24 +02:00
|
|
|
<% end -%>
|
2013-06-10 14:36:41 +02:00
|
|
|
<% if @replicate_wild_ignore_table != 'UNSET' -%>
|
|
|
|
replicate-wild-ignore-table = <%= @replicate_wild_ignore_table %>
|
2013-04-08 17:23:24 +02:00
|
|
|
<% end -%>
|
2013-07-05 03:33:53 +02:00
|
|
|
<% if @ft_min_word_len != 'UNSET' -%>
|
|
|
|
ft_min_word_len = <%= @ft_min_word_len %>
|
|
|
|
<% end -%>
|
|
|
|
<% if @ft_max_word_len != 'UNSET' -%>
|
|
|
|
ft_max_word_len = <%= @ft_max_word_len %>
|
|
|
|
<% end -%>
|
2013-04-07 22:20:36 +02:00
|
|
|
|
2013-06-16 17:41:29 +02:00
|
|
|
<% if @log_error != 'syslog' -%>
|
|
|
|
log_error = <%= @log_error %>
|
2012-11-16 20:37:14 +01:00
|
|
|
<% end -%>
|
2013-06-26 12:06:01 +02:00
|
|
|
expire_logs_days = 10
|
|
|
|
max_binlog_size = 100M
|
2013-06-16 17:41:29 +02:00
|
|
|
<% if @default_engine != 'UNSET' %>
|
2013-05-24 16:01:52 +02:00
|
|
|
default-storage-engine = <%= @default_engine %>
|
2013-04-07 22:20:36 +02:00
|
|
|
<% end -%>
|
2013-06-10 14:36:41 +02:00
|
|
|
<% if @character_set != 'UNSET' -%>
|
|
|
|
character-set-server = <%= @character_set %>
|
2013-04-07 22:20:36 +02:00
|
|
|
<% end -%>
|
2013-07-10 05:12:38 +02:00
|
|
|
<% if @ssl %>
|
2013-05-24 16:01:52 +02:00
|
|
|
ssl-ca = <%= @ssl_ca %>
|
|
|
|
ssl-cert = <%= @ssl_cert %>
|
|
|
|
ssl-key = <%= @ssl_key %>
|
2013-04-07 22:20:36 +02:00
|
|
|
<% end -%>
|
2012-03-20 00:24:01 +01:00
|
|
|
|
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/
|