认证插件更新
mysql吧
全部回复
仅看楼主
level 12
幽幽七火 楼主
认证插件更新
  MySQL5.7默认身份插件是mysql_native_password
  MySQL8.0默认的身份插件是caching_sha2_password
  查看身份认证插件命令:show variables like 'default_authentication_plugin%';
  身份认证插件可以通过以下2中方式改变:
1)系统变量default_authentication_plugin去改变,在my.ini文件的[mysqld]下面设置default_authentication_plugin=mysql_native_password即可
  2)如果希望只是某一个用户通过mysql_native_password的方式认证,可以修改数据库mysql下面的user表的字段,执行以下命令:
  >alter user '用户名'@'主机' identified width mysql_native_password by '密码';
2021年02月24日 21点02分 1
1