Skip to content

Can't connect to mysql container from MySQL Workbench (Windows 10) #274

Closed
@rgaicherry

Description

@rgaicherry

Need help to connect to mysql container from MySQL Workbench (Windows 10). Here are the steps I took:

  1. Installed Docker for Windows 10.

  2. Downloaded mysql instance via command:

     docker run --name mysql_qa -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root -d mysql
    
  3. Verified that mysql container is running (checked via "docker ps"):

CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
c1616f7623d4 mysql "docker-entrypoint..." 18 hours ago Up 24 minutes 0.0.0.0:3306->3306/tcp mysql_qa

  1. Got he IP address of mysql container via "docker inspect mysql_qa":

    "IPAddress": "172.17.0.2"

  2. Verify mysql container' status via "docker logs mysql_qa" and got the following:

2017-03-17T14:47:57.495536Z 0 [Note] Event Scheduler: Loaded 0 events
2017-03-17T14:47:57.495719Z 0 [Note] Executing 'SELECT * FROM INFORMATION_SCHEMA.TABLES;' to get a list of tables using the deprecated partition engine. You may use the startup option '--disable-partition-engine-check' to skip this check.
2017-03-17T14:47:57.495732Z 0 [Note] Beginning of list of non-natively partitioned tables
2017-03-17T14:47:57.510976Z 0 [Note] End of list of non-natively partitioned tables
2017-03-17T14:47:57.511134Z 0 [Note] mysqld: ready for connections.
Version: '5.7.17' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server (GPL)

  1. Installed MySQL Workbench for Windows 64bit.

  2. Inside MySQL Workbench, I tried to connect to mysql container using IP address 172.17.0.2 and port 3306, it failed. I also tried to connect to 192.168.99.100 and port 3306. It failed too.

Any help will be greatly appreciated. Thanks ahead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions