docker-library / mysql

Docker Official Image packaging for MySQL Community Server
https://dev.mysql.com/
GNU General Public License v2.0
2.46k stars 2.19k forks source link

如何使用DBeaver去连接mysql镜像? #1085

Closed meisir5648 closed 2 weeks ago

meisir5648 commented 3 weeks ago

1,最新版本的mysql有防火墙吗?我使用DBeaver连接时无响应。 2,是使用localhost去连接,还是使用容器的ip去连接?

image image image
tianon commented 2 weeks ago

If you want to connect to your container over localhost on your host, you'll need to "publish" the port (-p / --publish flag on docker run).