Skip to content

Instantly share code, notes, and snippets.

Last active Oct 8, 2017
What would you like to do?
mysql configuration to avoid Docker error like " Aborted connection 6 to db: 'db' user: 'root' host: '' (Got an error reading communication packets)"
default-character-set = utf8mb4
default-character-set = utf8mb4
max_allowed_packet = 1073741824
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci
#### after the above custom my.cnf, add this at the Dockerfile
FROM mysql:latest
COPY ./custom-mysql.cnf /etc/mysql/conf.d/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment