Home > OS >  Docker set up mysql, etc can't find the mysql folder?
Docker set up mysql, etc can't find the mysql folder?

Time:11-10

Docker to download mysql, run ok, nivacat connection is successful, now to change the mysql configuration file,
Tutorial is in/etc/mysql my CNF, but not under the/etc/mysql folder, how to do?

CodePudding user response:

If is docker container, you need to go into the container inside.

CodePudding user response:

When start the docker, can use the -v parameter will be mapped to the local configuration file docker, pay attention to their own etc docker can access to the specified directory,
If you want to modify the docker configuration file, you can edit a configuration file using the command: docker cp is copied to the docker

CodePudding user response:

Are not mapped out by default configuration file path, inside the container configuration file/etc/mysql/my CNF, need to enter into the container, the container inside
  • Related