修改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 '

使用这种格式报错:

格式:mysql> set password for 用户名@localhost = password('新密码');  

 

找到另一种方法解决:

 

ALTER USER 'root'@'localhost' IDENTIFIED BY '新密码';

posted @ 2019-03-18 10:29  虾米不怕鲨  阅读(338)  评论(0编辑  收藏  举报