Skip to content
Snippets Groups Projects
Commit de0c7801 authored by Jeffrey Zhang's avatar Jeffrey Zhang Committed by Jeffrey Zhang
Browse files

Change Mariadb default character set to utf8


Closes-Bug: #1623307
Change-Id: I364a8345872ae3b0a7ff684edfe9ff0e22f2c26c
Signed-off-by: default avatarJeffrey Zhang <zhang.lei.fly@gmail.com>
parent b6c40d9d
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,12 @@ ...@@ -4,6 +4,12 @@
{#- mariadb will fail to start #} {#- mariadb will fail to start #}
{%- set wsrep_driver = 'none' if orchestration_engine == 'KUBERNETES' else wsrep_driver %} {%- set wsrep_driver = 'none' if orchestration_engine == 'KUBERNETES' else wsrep_driver %}
[client]
default-character-set=utf8
[mysql]
default-character-set=utf8
[mysqld] [mysqld]
bind-address={{ api_interface_address }} bind-address={{ api_interface_address }}
port={{ mariadb_port }} port={{ mariadb_port }}
...@@ -14,6 +20,10 @@ binlog_format=ROW ...@@ -14,6 +20,10 @@ binlog_format=ROW
default-storage-engine=innodb default-storage-engine=innodb
innodb_autoinc_lock_mode=2 innodb_autoinc_lock_mode=2
collation-server = utf8_unicode_ci
init-connect='SET NAMES utf8'
character-set-server = utf8
datadir=/var/lib/mysql/ datadir=/var/lib/mysql/
wsrep_cluster_address=gcomm://{% if (groups['mariadb'] | length) > 1 %}{% for host in groups['mariadb'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ mariadb_wsrep_port }}{% if not loop.last %},{% endif %}{% endfor %}{% endif %} wsrep_cluster_address=gcomm://{% if (groups['mariadb'] | length) > 1 %}{% for host in groups['mariadb'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ mariadb_wsrep_port }}{% if not loop.last %},{% endif %}{% endfor %}{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment