MySQL 说:无法连接到“127.0.0.1”上的 MySQL 服务器 (4)

Sha*_*med 0 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)
Run Code Online (Sandbox Code Playgroud)

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

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

小智 7

我在使用 Sequel Pro 时也有同样的经历。
转到Preferences (Sequel Pro) => Network并将超时秒数增加到 30。
这解决了我的问题。
在此处输入图片说明