In 2024 when Mysql 8.3 ist current, a MySQL5.1 environment (released in 2010) is still needed as requirement from mature programs
clone the source directory, define the exact mysql version and run the build.sh script. Only 5.1.X versions are supported. Source will be downloaded from MySQL Product Archive while running build (means internet access is needed)
git clone https://github.com/Tommi2Day/mysql51.git
cd mysql51
# set desired version
VERSION=5.1.51
./build.sh $VERSION
# mysql
EXPOSE 3306
-v mysqldata:/db # mysql datadir
MYSQL_ROOT_PASSWORD=mysql51
TZ=Europe/Berlin
Root password will be bound to the wildcard % host to allow login from any network host.
Specify the exact mysql version, the MYSQL_ROOT_PASSWORD environment variable and a volume for the datafiles when launching a new container, e.g:
VERSION=5.1.51
docker run --name mysql51 \
--add-host="mysql51:127.0.0.1" \
-e MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD \
-v /docker/mysql51-data:/db \
-p 33306:3306 \
tommi2day/mysql51:$VERSION
mysql -h localhost -P 33306 -u root --password=$MYSQL_ROOT_PASSWORD mysql
Content type
Image
Digest
sha256:9692879f2…
Size
132.9 MB
Last updated
over 2 years ago
docker pull tommi2day/mysql51