三亩地 三亩地SAN MU DI · CODE DIARY
ARTICLE DETAIL

日记详情

真实记录编程学习的某一天,欢迎挑你感兴趣的翻一翻。

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

【数据库】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('你的密码');

← 返回列表