问题:
mysql-8.0.27-winx64命令行修改密码时使用语句
set password for root@localhost = password("1234567");
提示如下错误:
ERROR 1064 (42000): 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
'password("1234567")' at line 1
解决办法:
SET PASSWORD = '1234567'