mysql-8.0.27-winx64命令行修改密码时提示ERROR 1064 (42000)错误

问题:

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'

猜你喜欢

转载自blog.csdn.net/dongyunlong123/article/details/122818669
今日推荐