'Laravel Sail Set MySQL Data Configuration Setting
I'm using Laravel Sail with MySQL. We have triggers on our database and I need to be able to set log_bin_trust_function_creators = 1 in the configuration. For the life of me, I can't figure out set this automatically when the container is created.
Solution 1:[1]
You could use a volume in docker-compose to replace the config. Then it will use your new config. To copy the current config from the container to your host OS you can use docker cp <container>:<file> <destination>.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | online Thomas |
