刚开始执行命令:
update user set authentication_string=password('123') where user='root';
报错如下:
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 '('123') where user='root'' at line 1
命令改为:
update user set authentication_string='123456' where user='root';
运行成功!
赠与有缘人,拿走不谢!
本文记录了一次解决MySQL中使用update命令更新用户密码时遇到的语法错误问题,并给出了正确的命令格式。
1万+

被折叠的 条评论
为什么被折叠?



