修改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 @ 2018-09-20 15:18  桥豆麻袋  阅读(19531)  评论(1编辑  收藏  举报