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

I can't use Sequel Pro to connect to my Sail PHPMyAdmin

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

当我 运行 ./vendor/bin/sail up -d 时,我的容器 运行ning 完美,我可以使用这些凭据在 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 中使用的凭据是:

我试过的:

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)
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)

编辑:According to this article,问题似乎是从8.0版本开始,Mysql更改了与服务器连接的加密模式,需要特定的插件来识别一个用户。

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

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

我没有解决 Sequel Pro 的问题,但是 :

For those who is still struggling with Sequel Pro problems: Sequel Pro was a great product, but with tons of unresolved issues and last release being dated to 2016 perhaps it's a good idea to look for some alternatives. There is a fork of SequelPro called SequelAce that seems to be pretty stable and up-to-date, it keeps similar functionality, similar look and feel, yet at the same time it is devoid of old Sequel Pro problems

所以我下载了 Sequel Ace 并且一切正常:https://github.com/Sequel-Ace/Sequel-Ace