2019-04-22 sql-server-terminal

less than 1 minute read

sql server

I needed to connect to a sql db this morning and I didn’t have a client. Docker to the rescue!
docker run -it mysql /bin/bash
mysql -u <myuser> -p -h <myhost> <mydatabase>
and done.
when using the -p flag it will prompt you for the password instead of having it in the terminal.
Simple easy and connected.

Categories:

Updated: