Change Mariadb default character set to utf8
Closes-Bug: #1623307 Change-Id: I364a8345872ae3b0a7ff684edfe9ff0e22f2c26c Signed-off-by: Jeffrey Zhang <zhang.lei.fly@gmail.com>
This commit is contained in:
parent
b6c40d9deb
commit
de0c780100
@ -4,6 +4,12 @@
|
||||
{#- mariadb will fail to start #}
|
||||
{%- set wsrep_driver = 'none' if orchestration_engine == 'KUBERNETES' else wsrep_driver %}
|
||||
|
||||
[client]
|
||||
default-character-set=utf8
|
||||
|
||||
[mysql]
|
||||
default-character-set=utf8
|
||||
|
||||
[mysqld]
|
||||
bind-address={{ api_interface_address }}
|
||||
port={{ mariadb_port }}
|
||||
@ -14,6 +20,10 @@ binlog_format=ROW
|
||||
default-storage-engine=innodb
|
||||
innodb_autoinc_lock_mode=2
|
||||
|
||||
collation-server = utf8_unicode_ci
|
||||
init-connect='SET NAMES utf8'
|
||||
character-set-server = utf8
|
||||
|
||||
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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user