MySQL 表示 : Can't connect to MySQL server on '127.0.0.1' (4)

标签 mysql mamp sequelpro

上面的问题在这里几乎没有解决方案,但我无法让他们中的任何一个工作所以问。

我已经安装了 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 应用程序。谢谢

最佳答案

我在使用 Sequel Pro 时也有同样的经历。
转到首选项(Sequel Pro)=> 网络并将超时秒数增加到大约 30。
这解决了我的问题。
enter image description here

关于MySQL 表示 : Can't connect to MySQL server on '127.0.0.1' (4),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49343173/

相关文章:

macos - OS X 10.8 (Mountain Lion) 更新后 MAMP Apache 无法启动

mysql - sequel pro 客户端无法连接到 MYSQL 容器

mysql - 如何在 Sequel Pro TEXT 编辑器中创建 JSON 字符串?

数据库;使用位置的时区选择昨天(午夜到午夜)的所有记录

mysql - 如何将新记录添加到 Rails 控制台上同一模型内创建的另一个表中?

mysql - SQL - 我想要选择 - 并更新所选

mysql - 无法使用 MAMP 或社区服务器连接到 mysql 服务器

mysql - 在 MySQL GROUP BY 中计数 "repeats"

php - 更新到 MAMP 3 并丢失了我的数据库文件

mysql - 如何将 iOS 应用程序连接到数据库(mySQL 到 Sequel Pro)?