【问题标题】:Connecting sequel pro to docker mysql将 sequel pro 连接到 docker mysql
【发布时间】: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 并尝试连接到您的容器。

标签: mysql docker sequelpro


【解决方案1】:

您在 MySQL 和 MSSQL 之间搞混了。这两个是完全不同的产品,协议不兼容。 sequelpro 是在运行 MSSQL 时连接到 MySQL 服务器的工具。没有魔法,它无法连接。

【讨论】:

    猜你喜欢
    • 2021-01-08
    • 2021-11-23
    • 1970-01-01
    • 1970-01-01
    • 2018-12-13
    • 2014-05-19
    • 2019-02-07
    • 2012-08-26
    • 2014-07-20
    相关资源
    最近更新 更多