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