-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default configuration /etc/mysql/my.cnf doesn't exist. Instead there's /etc/my.cnf. #792
Comments
Can you give all the commands you ran and any relevant files or logs for reproducing the issue $ docker run -d --rm -e MYSQL_ROOT_PASSWORD=root mysql
Unable to find image 'mysql:latest' locally
latest: Pulling from library/mysql
07aded7c29c6: Pull complete
f68b8cbd22de: Pull complete
30c1754a28c4: Pull complete
1b7cb4d6fe05: Pull complete
79a41dc56b9a: Pull complete
00a75e3842fb: Pull complete
b36a6919c217: Pull complete
635b0b84d686: Pull complete
6d24c7242d02: Pull complete
5be6c5edf16f: Pull complete
cb35eac1242c: Pull complete
a573d4e1c407: Pull complete
Digest: sha256:4fcf5df6c46c80db19675a5c067e737c1bc8b0e78e94e816a778ae2c6577213d
Status: Downloaded newer image for mysql:latest
a2d809c052fabaa0a474af48b78e5f981d0fe6a475a4203944694fa865507325
$ docker exec -it a2d bash
root@a2d809c052fa:/# ls /etc/mysql/
conf.d my.cnf my.cnf.fallback |
Sure, here's the output of a session where I run the latest MySQL Docker container, shell into it and show that there's no
|
Ah yeah |
Somewhere I messed up, because I actually started at the official
|
Yeah, that's unfortunately expected; see #318. |
According to the official container description and many online sources the MySQL config file should be located at
/etc/mysql/my.cnf
. However, when I look in the container the folder/etc/mysql
doesn't exist. It appears the default config file is located at/etc/my.cnf
. Why has this changed and why didn't the docs get updated? How do I add custom config stuff to a container?The text was updated successfully, but these errors were encountered: