V
V
Vladyslav2021-02-04 00:40:22
MySQL
Vladyslav, 2021-02-04 00:40:22

Why can't connect to MySQL via Docker container?

For some reason, my test to connect to MySQL fails, what could be the reason?
601b17ff7814f246655084.png
If we are in the host folder that we are going to connect to Docker, it turns out that just a slash from the host side will be enough?
-v /:/var/lib/mysql

Here an error occurs when test connection to MySQL
601b17dd73813745497151.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Romanov, 2021-02-04
@Serhioromano

/ means the root folder of the host, not the current one. The current one will be .
The connection error may also be due to the authentication method. But as I see you launched without a password. I don't know, some clients don't connect normally without passwords.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question