Laravel Can';t使用Sequel Pro连接到数据库

Laravel Can';t使用Sequel Pro连接到数据库,laravel,mamp,valet,Laravel,Mamp,Valet,我正在使用Laravel Valet,我可以在浏览器中看到网站,但无法建立数据库连接。我知道这一点,因为我在尝试迁移表时收到错误消息 SQLSTATE[HY000] [2002] Connection refused 步骤: 我使用自制软件安装了php和mysql。 安装mysql之后,我运行了mysql-uroot-p,并输入了一个新的安全密码。 我使用Sequel Pro的连接设置包括: Host: 127.0.0.1 Username: root Password: (the passw

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

SQLSTATE[HY000] [2002] Connection refused
步骤: 我使用自制软件安装了php和mysql。 安装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和代客泊车。这些可能相互冲突吗?我应该去掉一个吗