MySQL server-8 未与 SQLyog-13 连接
MySQL server-8 not connecting with SQLyog-13
我在 Windows-10 笔记本电脑上安装了 mysql-8.0.11-winx64 和 SQLyog-13.0.1-0.x64Community。尝试使用未连接的 root 用户将 SQLyog 与 MySQL 数据库连接时。显示此错误:
我可以通过以下查询创建另一个用户来解决此问题:
create user '[USERNAME]'@'%' identified with mysql_native_password by '[PASSWORD]';
我可以理解 Oracle 在 MySQL-8 中设置了默认身份验证类型 caching_sha2_password
。我在这里找到文章:
In MySQL 5.7, the default authentication plugin is
mysql_native_password. As of MySQL 8.0, the default authentication
plugin is changed to caching_sha2_password.
请在此处找到完整的文章:
https://dev.mysql.com/doc/refman/5.7/en/caching-sha2-pluggable-authentication.html
解决此问题的另一种方法是,我们可以通过将身份验证类型从默认 caching_sha2_password
更改为 mysql_native_password
来更改用户。这是类似的方法:
如果您想保留 "fancy" caching_sha2_password
凭据插件,您可以将 SQLyog 升级(如果可以)到 13.1.3 或更高版本。
引用自 SQLyogVersion-History - 2019
--The “caching_sha2_password” authentication plugin (default in recent MySQL 8 servers) is now supported.
我在 Windows-10 笔记本电脑上安装了 mysql-8.0.11-winx64 和 SQLyog-13.0.1-0.x64Community。尝试使用未连接的 root 用户将 SQLyog 与 MySQL 数据库连接时。显示此错误:
我可以通过以下查询创建另一个用户来解决此问题:
create user '[USERNAME]'@'%' identified with mysql_native_password by '[PASSWORD]';
我可以理解 Oracle 在 MySQL-8 中设置了默认身份验证类型 caching_sha2_password
。我在这里找到文章:
In MySQL 5.7, the default authentication plugin is mysql_native_password. As of MySQL 8.0, the default authentication plugin is changed to caching_sha2_password.
请在此处找到完整的文章: https://dev.mysql.com/doc/refman/5.7/en/caching-sha2-pluggable-authentication.html
解决此问题的另一种方法是,我们可以通过将身份验证类型从默认 caching_sha2_password
更改为 mysql_native_password
来更改用户。这是类似的方法:
如果您想保留 "fancy" caching_sha2_password
凭据插件,您可以将 SQLyog 升级(如果可以)到 13.1.3 或更高版本。
引用自 SQLyogVersion-History - 2019
--The “caching_sha2_password” authentication plugin (default in recent MySQL 8 servers) is now supported.