From: Nick Porter Date: Wed, 14 Aug 2024 07:38:53 +0000 (+0100) Subject: Add rlm_sql_mysql driver option to set connection character set X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24cf07fd1005571be055d10737225f312a68a369;p=thirdparty%2Ffreeradius-server.git Add rlm_sql_mysql driver option to set connection character set --- diff --git a/raddb/mods-config/sql/driver/mysql b/raddb/mods-config/sql/driver/mysql index d84f19aae14..aedf8f05820 100644 --- a/raddb/mods-config/sql/driver/mysql +++ b/raddb/mods-config/sql/driver/mysql @@ -1,6 +1,6 @@ # -*- text -*- # -# SQL driver configuration for MySQL +# SQL driver configuration for MySQL/MariaDB # # Should be included inside of a SQL module's configuration section # @@ -16,8 +16,13 @@ mysql { # cipher = "DHE-RSA-AES256-SHA:AES128-SHA" # } # - # If yes, (or auto and libmysqlclient reports warnings are + # If yes, (or auto and libmariadb reports warnings are # available), will retrieve and log additional warnings from # the server if an error has occurred. Defaults to 'auto' warnings = auto + + # The character set to use for connections + # See https://mariadb.com/kb/en/mysql_set_character_set/ + # for a list of valid options +# character_set = utf8mb4 } diff --git a/raddb/mods-config/sql/main/mysql/queries.conf b/raddb/mods-config/sql/main/mysql/queries.conf index c7ee059b769..95338016364 100644 --- a/raddb/mods-config/sql/main/mysql/queries.conf +++ b/raddb/mods-config/sql/main/mysql/queries.conf @@ -12,12 +12,13 @@ ####################################################################### # Connection config ####################################################################### -# The character set is not configurable. The default character set of -# the mysql client library is used. To control the character set, -# create/edit my.cnf (typically in /etc/mysql/my.cnf or /etc/my.cnf) -# and enter -# [client] -# default-character-set = utf8 +# The character set is configured using the driver option `character_set` +# in mods-config/sql/driver/mysql +# +# To control other client library options, create / edit my.cnf (typically +# in /etc/mysql/my.cnf or /etc/my.cnf) and enter +# [freeradius] +#