首页 > 解决方案 > Sequel Pro 无法连接 MySql 数据库

问题描述

我是mysql的新手,所以请多多包涵...

我通过自制软件安装了 mysql,在完成 mysql_secure_installation 中的所有步骤后,我可以在终端中连接到它。那是我收到这条消息的时候:

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 10
Server version: 8.0.18 Homebrew
Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

这意味着它已安装并正常工作,对吗?

好的,所以现在我打开 Sequel Pro 并尝试使用套接字连接进行连接。我在用户名字段中输入了“root”。我添加了我在密码字段的 mysql_secure_installation 中设置的密码。但后来我得到了这个错误: Sequel Pro Error

我在安装中做错了吗?我忘记安装什么了吗?还是因为其他原因?

我怎样才能解决这个问题?

提前非常感谢!

标签: mysqlmacos

解决方案


MySQL 8caching_sha2_password默认使用。Sequel Pro 可能不支持此身份验证插件。

要使用以前的身份验证插件,请运行:

ALTER USER 'root'@'yourhost' IDENTIFIED WITH mysql_native_password BY 'yourpw';
FLUSH PRIVILEGES;
QUIT

推荐阅读