【发布时间】:2020-04-24 15:43:46
【问题描述】:
我遵循了有关如何将 mysql 安装到 docker here 的指南。
在运行docker ps 时,我得到:
CONTAINER ID IMAGE COMMAND CREATED
3e477bb5aaf9. mcr.microsoft.com/mssql/server:2019-latest "/opt/mssql/bin/perm…" 53 seconds ago
STATUS PORTS NAMES
Up 52 seconds 0.0.0.0:1433->1433/tcp sql_server
我曾尝试像这样从 sequel pro 连接到它:
但是,那没有用。我收到了连接错误消息:
Unable to connect to host 127.0.0.1, or the request timed out.
Be sure that the address is correct and that you have the necessary privileges, or try increasing the connection timeout (currently 10 seconds).
MySQL said: Can't connect to MySQL server on '127.0.0.1' (4)
我想知道如何使用 Sequel Pro 连接到 docker 上的 mysql 服务器?
【问题讨论】:
-
你是什么意思“那没用”?你的电脑爆炸了吗?它抛出错误了吗?屏幕卡住了吗?
-
它抛出了连接错误信息。我已将其添加到问题中。
-
您的容器是 SQL Server。下载 Azure Data Studio 并尝试连接到您的容器。