首页 > 技术文章 > Mysql 8.0 新特性和问题

059212315 2020-03-13 19:51 原文

 

mysql8.0用户密码设置注意事项

在MySQL 8.0.11中,caching_sha2_password是默认的身份验证插件,而不是以往的mysql_native_password。

如果客户端连接报授权验证出错,可使用以下命令调整。

> alter user 'root'@'localhost' identified with mysql_native_password by '密码';
> flush privileges;

 

推荐阅读