A workaround for the permission issue with Docker volumes
357
This MySQL docker container is an alternative to MySQL Sandbox.
For development environment only.
/config.localhost, you have to
use docker exec and MySQL's GRANT to correct it.
E.g. GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password';$ ls path-to-the-data-files
auto.cnf
ib_logfile0
...
mysql
performance_schema
...
$ cp -v path-to-the-data-files data
$ cp -v docker-compose.yml{.example,}
$ docker-compose up -d
$ mysql -hdocker-daemon-ip-goes-here -uroot -p
Start using MySQL...
Content type
Image
Digest
Size
107.3 MB
Last updated
about 10 years ago
docker pull sealink/mysql