当您在使用 “UPDATE user SET passWord=PASSWORD(‘newpassword’) WHERE User=‘root’;” 命令时提示 “ERROR 1356 (HY000): View ‘Mys
当您在使用 “UPDATE user SET passWord=PASSWORD(‘newpassword’) WHERE User=‘root’;” 命令时提示 “ERROR 1356 (HY000): View ‘Mysql.user’ references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them”,表明在您的 MariaDB 版本中,‘user’ 表已经不存在,由于版本不同的MariaDB解决方案也不同。
如果你的版本在10.4.4以上,你可以使用如下命令重置密码
ALTER USER 'root'@'localhost' IDENTIFIED BY 'newpassword';
如果你的版本在10.4.4之前,你可以使用如下命令重置密码
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('newpassword');
记得重启mysql服务,并使用新密码登录MariaDB。
建议您查询对应版本的MariaDB的文档,以
来源地址:https://blog.csdn.net/m0_48096446/article/details/128643379
--结束END--
本文标题: mysql报错ERROR 1356 (HY000): View ‘mysql.user‘ references invalid table(s) or column(s) or function(s)
本文链接: https://www.lsjlt.com/news/371866.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-06-06
2024-06-06
2024-06-05
2024-06-04
2024-06-04
2024-06-03
2024-06-03
2024-06-03
2024-06-04
2024-06-03
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0