mysql-8.0.11修改密码及建立本地连接遇到问题及解决
本篇介绍mysql-8.0.11修改密码及建立本地连接(win10系统)
1.修改密码
报错信息
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax
解决方法:
ALTER USER 'root'@'localhost' IDENTIFIED BY 'root' PASSWORD EXPIRE NEVER;
2.建立本地连接
1.使用工具SQLyog连接数据库
出现报错:plugin caching_sha2_password could not be loaded
修复:
ALTER USER root@localhost IDENTIFIED WITH mysql_native_password BY ‘root’;