yobasystems / alpine-mariadb

MariaDB running on Alpine Linux [Docker]
https://hub.docker.com/r/yobasystems/alpine-mariadb/
237 stars 71 forks source link

Not passing parameters to mysqld #13

Closed keithy closed 5 years ago

keithy commented 5 years ago

Using the official mariadb imagesIt is useful to pass some parameters to mysqld as described:

https://docs.docker.com/samples/library/mariadb/ in the section titled "Configuration without a cnf file"

This can be used from a docker-compose-file like so:

command:
  - --character-set-server=utf8
  - --collation-server=utf8_bin
  - --explicit-defaults-for-timestamp=1

So I assume you just need: exec /usr/bin/mysqld --user=mysql --console $@

xgenvn commented 5 years ago

I think this also the reason I cannot set default timezone directly to the command.

dominictayloruk commented 5 years ago

Merged with https://github.com/yobasystems/alpine-mariadb/commit/cb4a998770afe15c38ab337ac7a1bf0aa4f38d98

Thanks keithy

keithy commented 5 years ago

Great!