I just created a mysql docker container using
docker run -p 3310:3310 --restart always --env MYSQL_ROOT_HOST=% --name=ipca-mysql -e MYSQL_ROOT_PASSWORD=admin -d mysql/mysql-server:5.7
I am able to connect to my database using docker exec -ti ipca-mysql bash
and mysql -u root -p
But when I tried to connect to my database at localhost:3310
using mysql workbench I get:
lost connection to mysql server at 'reading initial communication packet' system error 0
Any idea what is this issue?