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_本会本机_密码”的正确语法。怎么办?
cmd进入命令行,然后执行这个:update user set authentication_string=password('新密码') where user='root' and Host='localhost';