stembrino / docker-init-mysql-sample

Using docker-compose to start mysql using your own schemas and tables.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MySql with Docker/docker-compose

Example how to use your files to create a database

  • Docker
  • Mysql
  • docker-compose

It's easy way to realize how to set up an enviroment and using your files (.sql) to create a connection with your applications

Fill the env variables in mysql.env and run: docker-compose up

To execute database commands (mysql) into your database container. Get the name of container, run: docker ps

Run the command to get navigate inside of the container: docker exec -it CONTAINER ID/NAME bash

Run the command: mysql -u USER NAME -p

About

Using docker-compose to start mysql using your own schemas and tables.