今天在安装mysql的时候,前面的步骤都没有太大的问题,但是到了想要重置密码的时候出现了问题,ERROR 1054 (42S22): Unknown column '‘root‘' in 'where clause',不管如何用sql语句进行重置,它都会出现这样的提示语句,我用的语句如下:
update user set password=password(‘123456‘) where user=‘root‘;
update user set password=password("123456") where user="root";然后就可以正常登陆

本文解决了在使用Xshell环境下重置MySQL密码时遇到的ERROR 1054(42S22): Unknown column 'root' in 'where clause'问题。通过调整SQL语句中的字符串引用方式,成功完成了密码重置。
2796

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



