新版mysql CMD登录 之 巨坑

从MySQL 8.0.4开始,他们将MySQL服务器的默认身份验证插件从mysql_native_password更改为 caching_sha2_password。

你可以运行以下命令来解决此问题。

sample username / password => student / pass123

ALTER USER ‘student’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘pass123’;
有关详细信息,请参见官方页面:MySQL参考手册

猜你喜欢

转载自blog.csdn.net/gogocsdn1/article/details/110629988