Last active
July 26, 2022 18:28
-
-
Save regisb/13208737b639a13ec9eb47d5aeb2747c to your computer and use it in GitHub Desktop.
Tutor plugin for adding utf8mb4 support to MySQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable utf8mb4 character support in mysql. | |
# See this conversation for further information: https://discuss.overhang.io/t/utfmb4-instead-of-utf8mb3-442/1590 | |
# Use this plugin as follows: | |
# | |
# tutor plugins install https://gist.githubusercontent.com/regisb/13208737b639a13ec9eb47d5aeb2747c/raw/e8845c6a5a11d0e1f0c2fe920d9d9bdddf13af71/tutor-mysqlutf8mb4.yml | |
# tutor plugins enable mysqlutf8mb4 | |
# tutor config save | |
# tutor local reboot | |
# | |
# Note: this plugin is not compatible with Kubernetes deployments. | |
name: mysqlutf8mb4 | |
version: 0.1.0 | |
config: | |
set: | |
RUN_MYSQL: false | |
patches: | |
local-docker-compose-services: | | |
# mysqlutf8mb4 | |
mysql: | |
image: {{ DOCKER_IMAGE_MYSQL }} | |
command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci | |
restart: unless-stopped | |
volumes: | |
- ../../data/mysql:/var/lib/mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: "{{ MYSQL_ROOT_PASSWORD }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment