无法使用 Sequel Pro 连接到数据库

问题描述

我正在使用 Laravel Valet,我可以在浏览器中看到该网站,但无法建立数据库连接。我知道这一点是因为我在尝试迁移表时收到错误消息。

sqlSTATE[HY000] [2002] Connection refused

步骤: 我使用 Homebrew 安装了 PHPMysqL。 安装 MysqL 后,我运行 MysqL -uroot -p 并输入一个新的安全密码。 我使用 Sequel Pro 的连接设置是:

Host: 127.0.0.1
Username: root
Password: (the password I created in the MysqL step)

错误信息:

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' (61)

知道为什么我无法连接吗?

附言我的 Mac(莫哈韦沙漠)上安装了 MAMP 和 Valet。这些会不会相互冲突?我应该删除一个吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...