Spinning MySQL Database with Docker

Опубликовано: 10 Март 2019
на канале: Hussein Nasser
50,169
833

💻 More Software engineering videos    • Software Engineering by Example  



In this video we will learn how to spin up a mysql database using docker.

Docker is the best and easiest way to practice, develop and learn. Instead of worrying about downloading, installing and configuring database. You can quickly spin a container do your testing and development then just spin it down.

Install docker from here https://www.docker.com/products/docke...

We will use this video as a reference for our coding series where we can write python code or Javascript code that hits this mysql database.

Lets do this!

#MYSQL
docker run --name ms -p 3306:3306 -e MYSQL_ROOT_PASSWORD=password mysql

bash into the container to run mysql
docker exec -it ms bash

run mysql
mysql -u root -ppassword (no space between -p and password)


Stay Awesome!
Hussein