【数据库】mysql-修改密码-error-1290 (HY000): The MySQL server is running with the –skip-grant-tables option

该报错同样适用于MariaDB

一、报错信息

ERROR 1290 (HY000): The MariaDB server is running with the –skip-grant-tables option so it cannot execute this statement

二、报错场景

修改mysql密码出现的报错。

三、解决方式

先使用flush privileges;刷新命令,再修改数据库密码set password for root@localhost=password(‘你的密码’);

本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://net2asp.com/09f4ec5def.html