mysql初始化密码为空然后我想修改密码不成功

mysql初始化密码为空然后我想修改密码不成功出现这种报错 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WITHmysql_native_password BY 'root'' at line 1 SQL语法出现错误;请检查与MySQL服务器版本相对应的手册,以获得在第1行“root”附近使用“WITHmysql_本会本机_密码”的正确语法。怎么办?

img

MySQL修改密码的3种方式 在使用数据库时,我们也许会经常遇到 MySQL 需要修改密码的情况,比如密码太简单、忘记密码不能登录等等。本节主要总结了几种修改 MySQL 密码的方法。 这里要注意,修改 MySQL 是需要 http://c.biancheng.net/view/7152.html

MySQL 5.7root用户密码修改_江黎-CSDN博客_mysql5.7修改root密码 在MySQL 5.7 password字段已从mysql.user表中删除,新的字段名是“authenticalion_string”.选择数据库:use mysql;更新root的密码:update user set authentication_string=password('新密码') where user='root' and Host='localhost';刷新权限:fl... https://blog.csdn.net/qq_39940205/article/details/81167131

cmd进入命令行,然后执行这个:update user set authentication_string=password('新密码') where user='root' and Host='localhost';