All Projects → treetips → docker-compose-all-mysql

treetips / docker-compose-all-mysql

Licence: other
MySQL and MariaDB docker containers of MySQL v5.5, v5.6, v5.7, v8.0, mariadb v10.0, v10.1, v10.2, v10.3

Programming Languages

shell
77523 projects
TSQL
950 projects

Projects that are alternatives of or similar to docker-compose-all-mysql

r2dbc-migrate
R2DBC database migration tool & library
Stars: ✭ 83 (-20.95%)
Mutual labels:  mariadb, mariadb-server
mariadb-cluster
MariaDB Galera cluster running on CoreOS using the official Docker images
Stars: ✭ 11 (-89.52%)
Mutual labels:  mariadb, mariadb-server
mapet
Muitas pessoas tem bichinhos de estimação, entre eles os mais comuns são gatos e cachorros. Com a correria do dia a dia pode acontecer deles acabarem escapando, e ai aonde divulgar para ajudarem a encontrá-lo o mais rápido possível? Redes Sociais? WhatsApp? Pensando nisso criamos o mapet, um mapa que você indica aonde seu pet foi visto pela últi…
Stars: ✭ 15 (-85.71%)
Mutual labels:  mariadb
LAMPP-Manager
A simple LAMPP manager designed to automate all the work.
Stars: ✭ 117 (+11.43%)
Mutual labels:  mariadb
docker-db-backup
Backup mutltiple databases types on a scheduled basis with many customizable options
Stars: ✭ 302 (+187.62%)
Mutual labels:  mariadb
datastation
App to easily query, script, and visualize data from every database, file, and API.
Stars: ✭ 2,519 (+2299.05%)
Mutual labels:  mariadb
ansible-role-phpmyadmin
Ansible Role - phpMyAdmin
Stars: ✭ 40 (-61.9%)
Mutual labels:  mariadb
mqtt2sql
Copy MQTT topic payloads to MySQL/SQLite database
Stars: ✭ 54 (-48.57%)
Mutual labels:  mariadb
wp-docker
A docker environment for WordPress site development.
Stars: ✭ 42 (-60%)
Mutual labels:  mariadb
db-doc
📝一款生成在线/离线数据库文档的小工具
Stars: ✭ 98 (-6.67%)
Mutual labels:  mariadb
mariadb
MariaDB docker container image
Stars: ✭ 42 (-60%)
Mutual labels:  mariadb
Database-Naming-Convention
Database Naming Conventions & Best Practices
Stars: ✭ 76 (-27.62%)
Mutual labels:  mariadb
yii2-mariadb
MariaDB Driver for Yii2
Stars: ✭ 24 (-77.14%)
Mutual labels:  mariadb
dbclient
데이터배이스 관리 / 자동 메일링 / Admin 자동화 / Database IDE Tool. SQL Development Helper. Support DBMS Oracle/Mysql/MS-SQL
Stars: ✭ 35 (-66.67%)
Mutual labels:  mariadb
wnmp-dev
Development environment: Windows + nginx + MySQL + PHP
Stars: ✭ 52 (-50.48%)
Mutual labels:  mariadb
sequelize-paper-trail
Sequelize plugin for tracking revision history of model instances.
Stars: ✭ 90 (-14.29%)
Mutual labels:  mariadb
High-Traffic-wordpress-server-configuration
High Traffic WordPress server configuration Nginx (updated) PHP 7.4 PHP-fpm Mariadb (updated) Wordpress (updated) Cloudflare Full SSL
Stars: ✭ 31 (-70.48%)
Mutual labels:  mariadb
Python-Course
🐍 This is the most complete course in Python, completely practical and all the lessons are explained with examples, so that they can be easily understood. 🍫
Stars: ✭ 18 (-82.86%)
Mutual labels:  mariadb
ansible-role-mysql
An Ansible role that installs MySQL or MariaDB
Stars: ✭ 20 (-80.95%)
Mutual labels:  mariadb
db-command
Performs basic database operations using credentials stored in wp-config.php.
Stars: ✭ 65 (-38.1%)
Mutual labels:  mariadb

Create all mysql-server docker container.

Motivation

In order to make it easy to test whether applications can be started with different versions, such as upgrading mysql, we made it possible to start multiple mysql servers easily.

mysqlのアップグレードなど、異なるバージョンでアプリケーションを起動できるかどうかをテストしやすくするために、複数のmysqlサーバーを docker-compose で簡単に起動できるようにしました。

Support MySQL version.

  • MySQL v5.5
  • MySQL v5.6
  • MySQL v5.7
  • MySQL v8.0
  • mariadb v10.0
  • mariadb v10.1
  • mariadb v10.2
  • mariadb v10.3

Usage

Install docker desktop

https://www.docker.com/products/docker-desktop

Install mysql-client

No need to install mysql client .

When connect-xxx.sh execute, the mysql client installed in the docker container is executed locally .

MySQLクライアントのインストールは不要です。

connect-xxx.shを実行すると、ローカルからMySQLコンテナ内のmysqlクライアントをリモート実行します。

Clone this repository

git clone [email protected]:treetips/docker-compose-all-mysql.git

Start mysql docker containers

$ docker-compose up -d

Connect any mysql-server on docker container

Connect remote mysql servers.

$ ./connect-mysql-5-5.sh
$ ./connect-mysql-5-6.sh
$ ./connect-mysql-5-6.sh
$ ./connect-mysql-8-0.sh
$ ./connect-mariadb-10-0.sh
$ ./connect-mariadb-10-1.sh
$ ./connect-mariadb-10-2.sh
$ ./connect-mariadb-10-3.sh

Wait for MySQL started before connecting.

MySQLの起動完了を待ってから接続します。。

waiting for running

Optional

Customize mysql client settings

vi ./my.cnf

All the same connection setting except port.

ポート以外の設定を共通で設定します。

Customize mysql server settings

$ vi ./mysql5.5/conf.d/my.cnf
$ vi ./mysql5.6/conf.d/my.cnf
$ vi ./mysql5.7/conf.d/my.cnf
$ vi ./mysql8.0/conf.d/my.cnf
$ vi ./mariadb10.0/conf.d/my.cnf
$ vi ./mariadb10.1/conf.d/my.cnf
$ vi ./mariadb10.2/conf.d/my.cnf
$ vi ./mariadb10.3/conf.d/my.cnf

Customize default schema, user, password

If you change database-schema or user or password or root-password, Edit .env .

DBスキーマ・ユーザ名・パスワード・rootパスワードを変更したい場合は、 .env を編集して下さい。

DB_DATABASE=work
DB_USER=worker
DB_PASSWORD=worker
DB_ROOT_PASSWORD=root

Remove logs

If you want to delete general.log and error.log and slow-query.log, execute clear_logs.sh .

general.logerror.log を削除したい場合は clear_logs.sh を実行して下さい。

Customize init scripts

https://hub.docker.com/_/mysql/#initializing-a-fresh-instance

Execution order at startup

  1. ./common/initdb.d/common-init.(sh|sql) (executed commonly for all containers)
  2. ./(mysql|mariadb)X.X/initdb.d/xxx.(sh|sql) (executed for each container)

Initial data can be input at startup by customizing these.

これらをカスタマイズすることにより、起動時に初期データを投入できます。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].