Access mysql server using docker without installing mysql client

Access mysql server using docker without installing mysql client

TLDR;

With docker installed, this command can be used to access the MySQL server without installing the MySQL client.

docker run -it --rm mysql mysql -u <your-account> -p<your-password> -h <your-host> [<your-database-name>]
Buy Me A Coffee