执行
update user set `Password` = password(`123456`) where `User` =`root` and `Host`=`localhost`
报错
查询出错 (1356): View 'mysql.user' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
执行
SET PASSWORD FOR 'root'@'%' = PASSWORD('123456');
重新登录。
本文介绍了一种在MySQL中尝试更新用户密码时遇到的错误:试图更新的视图引用了无效的表、列或函数,或者视图的定义者缺乏使用它们的权限。文章提供了错误的具体SQL语句及解决方案。
501

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



