MySQL Forums
Forum List  »  MySQL Workbench

Re: using docker i create IP command line can login but not workbench
Posted by: Herrick Peterson
Date: November 02, 2026 04:01AM

docker exec connects from inside the container, so it doesn't confirm that MySQL is accessible from your host machine.

Check that the MySQL container's port 3306 is published using docker ps. If it isn't, start the container with -p 3306:3306.

Then try connecting from MySQL Workbench using your host's IP address and port 3306. Also check that the MySQL user is allowed to connect remotely and that your firewall permits the connection.

If it still fails, share the exact Workbench error message and your Docker port mapping.

Herrick, DevOps Engineer @accuweb.cloud

Options: Reply• Quote


Subject
Views
Written By
Posted
Re: using docker i create IP command line can login but not workbench
20
November 02, 2026 04:01AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.