Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelogs/fragments/109-enable-load-data-local-infile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- roles/proxysql - Add support for setting enable_load_data_local_infile (https://github.com/ansible-collections/community.proxysql/pull/109).
3 changes: 3 additions & 0 deletions roles/proxysql/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,6 @@ proxysql_mysql_query_digests_max_query_length: 65000
proxysql_mysql_stats_time_backend_query: false
proxysql_mysql_stats_time_query_processor: false
proxysql_mysql_verbose_query_error: false

# misc
proxysql_mysql_enable_load_data_local_infile: false
9 changes: 8 additions & 1 deletion roles/proxysql/vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,14 @@ _proxysql_mysql_client_found_rows:
variable: "client_found_rows"
variable_value: "{{ proxysql_mysql_client_found_rows | to_json }}"

proxysql_mysql_variables: "{{ _proxysql_mysql_variables | combine((proxysql_version is version('2.4.0', '<')) | ternary(_proxysql_mysql_client_found_rows, {})) }}"
_proxysql_enable_load_data_local_infile:
enable_load_data_local_infile:
variable: "enable_load_data_local_infile"
variable_value: "{{ proxysql_mysql_enable_load_data_local_infile }}"

proxysql_mysql_variables: "{{ _proxysql_mysql_variables
| combine((proxysql_version is version('2.4.0', '<')) | ternary(_proxysql_mysql_client_found_rows, {}))
| combine((proxysql_version is version('2.3.0', '>=')) | ternary(_proxysql_enable_load_data_local_infile, {})) }}"

proxysql_mysql_options:
mysql_threads:
Expand Down