Skip to content

Commit

Permalink
I can't find a reason to switch back to unspecified utf8
Browse files Browse the repository at this point in the history
- https://mariadb.com/kb/en/unicode/
  - the meaning of utf8 will change from 10.5 to 10.6
- https://mariadb.com/docs/reference/mdb/system-variables/collation_server/
  - a majority of setups use utf8mb4_unicode_ci

Ref Yolean/kubernetes-mysql-cluster#35
  • Loading branch information
solsson committed Jun 20, 2021
1 parent 4a7eacc commit e9bf2b4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ services:
mkdir -p /tmp/unhelm/mysql/mariadb-galera
echo 'resources:' > /tmp/unhelm/mysql/mariadb-galera/kustomization.yaml
helm template ystack bitnami/mariadb-galera -f mysql/mariadb-galera.yaml --namespace unhelm-namespace-placeholder --output-dir /tmp/unhelm/mysql | sed 's|wrote /tmp/unhelm/mysql/mariadb-galera/|- ./|' | tee -a /tmp/unhelm/mysql/mariadb-galera/kustomization.yaml
# Opinions, https://github.com/Yolean/kubernetes-mysql-cluster/pull/35
sed -i.org 's/\butf8/utf8mb4/' /tmp/unhelm/mysql/mariadb-galera/templates/configmap.yaml
# Your Kustomize base must override:
grep -rn unhelm-namespace-placeholder /tmp/unhelm/mysql
set +x
Expand Down
6 changes: 3 additions & 3 deletions mysql/mariadb-galera/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ data:
## Character set
##
collation_server=utf8_unicode_ci
init_connect='SET NAMES utf8'
character_set_server=utf8
collation_server=utf8mb4_unicode_ci
init_connect='SET NAMES utf8mb4'
character_set_server=utf8mb4
## MyISAM
##
Expand Down

0 comments on commit e9bf2b4

Please sign in to comment.