A
A
Alexander Ampleev2020-02-28 11:48:02
MySQL
Alexander Ampleev, 2020-02-28 11:48:02

How to connect to mysql running in container on docker desktop on mac os?

Here is a running container.
5e58d1ab2c0bd848211430.png

5e58d3b611410468799195.png
I can connect to this database without problems, but I can’t connect to it in mysql work bench.

5e58d302c270f770898522.png
5e58d30b30f5e272843205.png

I tried to just specify localhost, write 121.01.01, etc. It seems that there should be some simple way to understand what data to enter in order to connect through mysql workbench

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor, 2020-02-28
@IgorPI

Specify the IP address as in the example below, so that there is no confusion.

# Database
  db:
    ...
    ports:
      - 127.0.0.100:3306:3306
    ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question