When working on test code on my computer, I usually use the built-in PHP server (php -S) which works nicely. Every so often, I need access to MySQL and I use Docker to temporarily create a MySQL server for me. This is how I do it. This creates a Docker container called “mysql” on port 3306.
via Did you enjoy this article? Then read the full version from the author’s website.