修改mysql密码出现报错:ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corres

解决方法1:

SET PASSWORD = '123456'

解决方法2:

ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';

命令行展现:

报错:
在这里插入图片描述
解决:
在这里插入图片描述

特别感谢:https://blog.csdn.net/qq939782569/article/details/87344602

原文地址:https://www.cnblogs.com/hfclszs/p/13758905.html