提问者:小点点

我无法使用Sequel Pro连接到我的Sail PHPMyAdmin


我在我的Laravel 8项目中使用Sail,我找不到使用Sequel Pro查看我的数据库的方法。

当我运行./供应商/bin/帆-d时,我的容器运行良好,我可以使用以下凭据访问http://localhost:8080/中的PHPMyAdmin:

  • 用户名:
  • 密码:密码

但问题是当我尝试使用Sequel Pro时,我有一个错误:

Connection failed!

Unable to connect to host 127.0.0.1, or the request timed out.

Verify that the address is correct and that you have the correct privileges, or try increasing the connection timeout (currently 10 seconds).

MySQL returned: Authentication plugin 'caching_sha2_password' cannot be loaded: dlopen (/usr/local/lib/plugin/caching_sha2_password.so, 2): image not found

我在. env中使用的凭据是:

  • 主机:127.0.0.1
  • 用户名:
  • 密码:密码
  • 端口:3306

我所尝试的:

  • 将主机从127.0.0.1更改为mysql,就像我在. env中一样,但是我得到了这个错误:
Unable to connect to the mysql host, or the request timed out.

Verify that the address is correct and that you have the correct privileges, or try increasing the connection timeout (currently 10 seconds).

MySQL returned: Unknown MySQL server host 'mysql' (0)
  • 将端口从3306更改为8080,但我收到这个错误:
Unable to connect to host 127.0.0.1, or the request timed out.

Verify that the address is correct and that you have the correct privileges, or try increasing the connection timeout (currently 10 seconds).

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

编辑:根据这篇文章,问题似乎是从8.0版开始,Mysql改变了与服务器连接的加密模式,需要一个特定的插件来识别用户。

我找到了一些可以运行的命令来解决这个问题,例如:

  • ALTER USERserver_ip用mysql_native_password的密码标识;但是我得到这个错误在一个新的更改操作开始之前缺少逗号。
  • SETPASSWORD FORserver_ip'=密码';但它没有改变任何内容。
  • 。/供应商/bin/帆下--rmi all-v。/供应商/bin/帆上-d但它什么也没改变。

但是问题没有解决,我也找不到任何方法来解决这个问题。


共1个答案

匿名用户

我没有用Sequel Pro解决问题,但根据这篇文章:

对于那些仍在与Sequel Pro问题作斗争的人来说:Sequel Pro是一个很棒的产品,但是有大量未解决的问题,最后一个版本可以追溯到2016年,也许寻找一些替代品是个好主意。SequelPro的一个分支叫做SequelAce,它似乎非常稳定和最新,它保持了相似的功能,相似的外观和感觉,但同时它没有旧的Sequel Pro问题

所以我下载了续集王牌和所有工作正常:https://github.com/Sequel-Ace/Sequel-Ace