MySQL Docker Environment
Sometimes you just want to spin up a MySQL server without having to re-read the
instructions. podman
is used as a drop-in replacement for Docker in this
example. You’re welcome.
Create a MySQL server
podman run --rm -p 3306:3306 --name mysql -e MYSQL_ROOT_PASSWORD=secret -d mysql:8.0.29-debian
Connecting to the server
mysql --host 0.0.0.0 --port 3306 --user root --password=secret