Code Monkey home page Code Monkey logo

docker-mysql-server-fixed's Introduction

docker-mysql-server-fixed

Docker image of fixed MySQL with mysql_native_password flag and utf8mb4 encoding. MySQL version 8.0.19. Config setting changed only for character-set encoding to recommended utf8mb4, added default_authentication_plugin = mysql_native_password to allow connect as it was previously and added time zone bind from host machine. Data directory is not change and located here /var/lib/mysql. Time zone can be binded at container startup from host machine by -v /etc/timezone:/etc/timezone:ro. All else from original MySQL image.

Docker image: https://hub.docker.com/r/vladimirok5959/mysql-server-fixed

Makefile

  • make docker-build - build docker image
  • make docker-export - export docker image to file
  • make docker-import - import docker image from file
  • make docker-test - run test container
  • make docker-push - push image to docker hub

Running docker container

docker run \
    --network host \
    --name my-container-name \
    -e MYSQL_ROOT_PASSWORD="my-root-pass" \
    -e MYSQL_DATABASE="my_test_base" \
    -e MYSQL_USER="my_test_user" \
    -e MYSQL_PASSWORD="my_test_pass" \
    -v /etc/timezone:/etc/timezone:ro \
    -v /path/to/data/dir:/var/lib/mysql \
    -d -it vladimirok5959/mysql-server-fixed:latest

Host network just for example, -v /etc/timezone:/etc/timezone:ro for getting time zone from host machine and -v /path/to/data/dir:/var/lib/mysql for rebind database data directory.

docker-mysql-server-fixed's People

Contributors

vladimirok5959 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

8secz-johndpope

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.