2012-08-16 03:03:37 +02:00
|
|
|
[client]
|
2013-04-04 12:02:58 +02:00
|
|
|
port = <%= port %>
|
2012-08-16 03:03:37 +02:00
|
|
|
socket = <%= socket %>
|
2013-04-07 22:20:36 +02:00
|
|
|
<% if character_set != 'UNSET' -%>
|
2013-04-04 12:02:58 +02:00
|
|
|
default-character-set = <%= character_set %>
|
2013-04-07 22:20:36 +02:00
|
|
|
<% end %>
|
2012-08-16 03:03:37 +02:00
|
|
|
[mysqld_safe]
|
|
|
|
socket = <%= socket %>
|
|
|
|
nice = 0
|
2012-11-16 20:37:14 +01:00
|
|
|
<% if log_error == 'syslog' -%>
|
|
|
|
syslog
|
|
|
|
<% end -%>
|
2011-06-22 20:38:11 +02:00
|
|
|
[mysqld]
|
2012-08-16 03:03:37 +02:00
|
|
|
user = mysql
|
2012-08-22 03:09:48 +02:00
|
|
|
pid-file = <%= pidfile %>
|
2012-08-16 03:03:37 +02:00
|
|
|
socket = <%= socket %>
|
|
|
|
port = <%= port %>
|
|
|
|
basedir = <%= basedir %>
|
|
|
|
datadir = <%= datadir %>
|
|
|
|
tmpdir = /tmp
|
|
|
|
skip-external-locking
|
2012-07-20 02:29:28 +02:00
|
|
|
|
2013-04-08 17:23:24 +02:00
|
|
|
<% if bind_address -%>
|
|
|
|
bind-address = <%= bind_address %>
|
|
|
|
<% end -%>
|
|
|
|
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
|
|
|
|
|
|
|
<% if max_connections != 'UNSET' -%>
|
|
|
|
max_connections = <%= max_connections %>
|
|
|
|
<% end -%>
|
|
|
|
<% if tmp_table_size != 'UNSET' -%>
|
|
|
|
tmp_table_size = <%= tmp_table_size %>
|
|
|
|
<% end -%>
|
|
|
|
<% if max_heap_table_size != 'UNSET' -%>
|
|
|
|
max_heap_table_size = <%= max_heap_table_size %>
|
|
|
|
<% end -%>
|
|
|
|
<% if table_open_cache != 'UNSET' -%>
|
|
|
|
table_open_cache = <%= table_open_cache %>
|
|
|
|
<% end -%>
|
|
|
|
<% if long_query_time != 'UNSET' -%>
|
|
|
|
long_query_time = <%= long_query_time %>
|
|
|
|
<% end -%>
|
2013-04-08 17:23:24 +02:00
|
|
|
<% if server_id != 'UNSET' -%>
|
|
|
|
server-id = <%= server_id %>
|
|
|
|
<% end -%>
|
|
|
|
<% if sql_log_bin != 'UNSET' -%>
|
|
|
|
sql_log_bin = <%= sql_log_bin %>
|
|
|
|
<% end -%>
|
|
|
|
<% if log_bin != 'UNSET' -%>
|
|
|
|
log-bin = <%= log_bin %>
|
|
|
|
<% end -%>
|
|
|
|
<% if binlog_do_db != 'UNSET' -%>
|
|
|
|
binlog-do-db = <%= binlog_do_db %>
|
|
|
|
<% end -%>
|
|
|
|
<% if log_bin_trust_function_creators != 'UNSET' -%>
|
|
|
|
log_bin_trust_function_creators = <%= log_bin_trust_function_creators %>
|
|
|
|
<% end -%>
|
|
|
|
<% if replicate_ignore_table != 'UNSET' -%>
|
|
|
|
replicate-ignore-table = <%= replicate_ignore_table %>
|
|
|
|
<% end -%>
|
|
|
|
<% if replicate_wild_do_table != 'UNSET' -%>
|
|
|
|
replicate-wild-do-table = <%= replicate_wild_do_table %>
|
|
|
|
<% end -%>
|
|
|
|
<% if replicate_wild_ignore_table != 'UNSET' -%>
|
|
|
|
replicate-wild-ignore-table = <%= replicate_wild_ignore_table %>
|
|
|
|
<% end -%>
|
2013-04-07 22:20:36 +02:00
|
|
|
|
2012-11-16 20:37:14 +01:00
|
|
|
<% if log_error != 'syslog' -%>
|
2013-04-08 17:23:24 +02:00
|
|
|
log_error = <%= log_error %>
|
2012-11-16 20:37:14 +01:00
|
|
|
<% end -%>
|
2012-05-15 17:55:42 +02:00
|
|
|
<% if default_engine != 'UNSET' %>
|
2012-08-16 03:03:37 +02:00
|
|
|
default-storage-engine = <%= default_engine %>
|
2013-04-07 22:20:36 +02:00
|
|
|
<% end -%>
|
|
|
|
<% if character_set != 'UNSET' -%>
|
|
|
|
character-set-server = <%= character_set %>
|
|
|
|
<% end -%>
|
2012-03-20 00:24:01 +01:00
|
|
|
<% if ssl == true %>
|
2012-08-16 03:03:37 +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
|
2012-08-16 03:03:37 +02:00
|
|
|
max_allowed_packet = 16M
|
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/
|