修改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 '新密码';

 

原文出处:https://www.cnblogs.com/wangxiaoyan/p/9681105.html

猜你喜欢

转载自www.cnblogs.com/Lionel002/p/13385291.html