A docker image for MySQL4
Though there exists new MySQL distributions just like MySQL5, MySQL6, there still have lots mature program needs a MySQL4 environment.
I think MySQL4 is too old to compile as 64-bits program, at least I don't think it will works perfectly when compiled as 64-bits, so we build this MySQL4 in 64-bits docker image with 32-bits gcc mode to ensure it will less problem when running.
Place your my.conf to /opt/mysql/conf.d and run this sample command:
docker run -it --rm -p 3306:3306 -v /srv/mysql:/var/lib/mysql -v /opt/mysql/conf.d:/etc/mysql/conf.d starofrainnight/mysql4
Data Directory: /var/lib/mysql
Config Directory: /etc/mysql/conf.d
A MySQL4 config file my.conf should be placed in directory and map to
/etc/mysql/conf.d
Here are environment variables that could be set to change internal behaviors:
Etc/UTFmysql4There are similar projects in docker-hub (Search by the keyword "mysql4"), mostly forked from Thomas Dressler's mysql4 docker project .
This project also inspired by his project, thanks!
Content type
Image
Digest
Size
292.7 MB
Last updated
over 7 years ago
docker pull starofrainnight/mysql4