From 662c1ee3579964cf4e3649496f28f7fc9c3d374d Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 25 Oct 2016 13:32:09 +0200 Subject: [PATCH] library/roles/mysql: More customizable options. --- mysql/defaults/main.yml | 1 + mysql/templates/server.cnf.j2 | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/mysql/defaults/main.yml b/mysql/defaults/main.yml index cdea08a..a0764d0 100644 --- a/mysql/defaults/main.yml +++ b/mysql/defaults/main.yml @@ -33,6 +33,7 @@ mysql_db_innodb_additional_mem_pool_size: 5M mysql_db_innodb_log_file_size: 64M mysql_db_innodb_log_buffer_size: 9M mysql_safe_open_files_limit: 1024 +mysql_max_allowed_packet: 16M mysql_listen_on_ext_int: False #mysql_db_data: diff --git a/mysql/templates/server.cnf.j2 b/mysql/templates/server.cnf.j2 index 27e107b..0131525 100644 --- a/mysql/templates/server.cnf.j2 +++ b/mysql/templates/server.cnf.j2 @@ -9,13 +9,17 @@ datadir = {{ mysql_data_dir }} log_error = {{ mysql_log_dir }}/error.log skip-external-locking key_buffer_size = 16M -max_allowed_packet = 1M +max_allowed_packet = {{ mysql_max_allowed_packet }} table_open_cache = 512 sort_buffer_size = 8M net_buffer_length = 8K read_buffer_size = {{ mysqld_db_read_buffer_size }} read_rnd_buffer_size = {{ mysql_db_read_rnd_buffer_size }} myisam_sort_buffer_size = 16M +sql_mode = {{ mysqld_sql_mode | default(omit) }} +ft_stopword_file = {{ mysqld_ft_stopword_file | default(omit) }} +ft_min_word_len = {{ mysqld_ft_min_word_lenght | default(omit) }} +ft_boolean_syntax = '{{ mysql_ft_boolean_syntax | default('+ -><()~*:\"\"&|') }}' # Point the following paths to different dedicated disks #tmpdir = /tmp/