Skip to content

bemays/docker-mysql-tutorial

 
 

Repository files navigation

Setting up a SQL Server in Docker

Prerequisites

  • Have a knowledge of Docker
  • Have Docker installed
  • Cloned this repository

Creating the Docker Container

  1. In a terminal (Bash/Shell/ect.) navigate to the directory with the docker-compose.yml file
  2. Run the command docker-compose -p mycomposer -f docker-compose.yml up -d

This will do many things:

  • Build a container for mysql_server and sqlpad
  • Run 2 sql files on the sql server that will create and populate a database and table
  • Set up all environmental variables for the sql server to allow remote connections
  • Set variables for sqlpad that will create a connection to our sql server automatically
  1. Open a browser to localhost:3000 to open sqlpad (may need to wait a few seconds for the script to finish running)

Login using the email address and password that was setup in the my.env in the sqlpad_env_file folder

Resources

Additional Resources for further Study

Unsorted resources (Sorry! I'll sort them later.)

About

A tutorial on how to create and use a mysql image through docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HTML 59.4%
  • Jupyter Notebook 40.5%
  • Shell 0.1%