mysql80連接navicat
兩種修改mysql密碼加密方式的方法
-
修改配置文件
default_authentication_plugin=caching_sha2_password 修改為:
default_authentication_plugin=mysql_native_password
-
使用命令進行更改
alter USER 'root'@'localhost' identified BY 'password' PASSWORD EXPIRE NEVER; #修改加密規則
alter USER 'root'@'localhost' identified WITH mysql_native_password BY 'password'; #更新一下用戶的密碼alter user 'root'@'localhost' identified by '你自己的密碼'; #再重置下密碼:
flush privileges; #刷新權限