【问题标题】:MySQL said: Can't connect to MySQL server on '127.0.0.1' (4)MySQL 说:Can't connect to MySQL server on '127.0.0.1' (4)
【发布时间】:2018-06-24 16:58:14
【问题描述】:

上述问题在这里几乎没有解决方案,但我无法让它们中的任何一个工作如此询问。

我已经安装了 mamp 和 sequel pro。我正在尝试使用 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)

这是我第一次尝试通过标准连接进行连接。

我尝试了套接字连接,它可以工作,但我无法将数据库与我的 nodejs 应用程序连接起来。谢谢

【问题讨论】:

  • MySQL 正在运行吗?它在 127.0.0.1 上监听吗?您的应用程序与数据库在同一台机器上吗?
  • 是的所有问题:)

标签: mysql mamp sequelpro


【解决方案1】:

我在使用 Sequel Pro 时也有同样的经历。
转到 Preferences (Sequel Pro) => Network 并将超时秒数增加到大约 30 秒。
这解决了我的问题。

【讨论】:

    猜你喜欢
    • 2015-09-30
    • 2021-06-25
    • 2016-06-07
    • 2019-12-29
    • 1970-01-01
    • 2020-10-23
    • 2018-11-30
    • 2020-02-21
    • 2013-09-12
    相关资源
    最近更新 更多