MySQL Docker Container with MySQL Workbench and PhpMyAdmin

Connecting MySQL Database in a Docker Container With MySQL Workbench and phpMyAdmin for Database Administration

Code Road
6 min readJul 2, 2022
SQL queries in a Laptop
Photo by Caspar Camille Rubin on Unsplash

If you following this writing, I assumed you already know and have Docker Desktop on your machine also you already know the basics of Docker commands.

Doing Web Development on a local machine requires multiple applications running together. Docker provides an os level of virtualization on the host machine to have an application running together on the machine.

I am using Docker as a tool for my web development environment. Docker is very helpful on my local machine to support the entire ecosystem of application services. You can run your web application with the database services on the same machine and you can set things all up in auto start if you reboot or restart your machine in the Docker Desktop settings.

Compare to the manual setup from these web development setups, Docker is very straightforward and does not need to figure out what works on my machine and what does not work on another machine on the OS level.

MySQL Docker Container

For me, I always create a separate local directory for any Docker container…

--

--

Code Road
Code Road

Written by Code Road

I write topics such as React/NextJS, Vue/NuxtJS, GraphQL, Laravel, TailwindCSS, Bootstrap, SEO, Headless CMS, Fullstack, and web development.

No responses yet