Sign inSign up

starofrainnight/mysql4

By starofrainnight

Updated over 7 years ago

A docker image for MySQL4

Image
0

441

starofrainnight/mysql4 repository overview

docker-mysql4

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.

Features

  • Base on Ubuntu:18.04 LTS image
  • Build MySQL4 with 32-bits mode, for avoid problems if build with 64-bits gcc

Usage

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

Ports

  • 3306 : Database Service Port

Volumes

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

Environment

Here are environment variables that could be set to change internal behaviors:

  • TZ : The time zone settings, defaults to Etc/UTF
  • MYSQL_ROOT_PASSWORD: Password of root user, defaults to mysql4

Acknowledgement

There 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!

Tag summary

Content type

Image

Digest

Size

292.7 MB

Last updated

over 7 years ago

docker pull starofrainnight/mysql4