咨询热线:4006-75-4006

售前:9:00-23:30    备案:9:00-18:00    技术:7*24h

MySQL修改密码报错:ERROR 1290 (HY000) The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement

2023-12-22 14:46:40 5043次

MySQL修改密码报错:ERROR 1290 (HY000) The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement

 

修改MySQL数据库密码报1290 错误 如下:

alter user ‘root’@‘localhost’ identified by ‘root’;

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

需要刷新下配置

flush privileges;

Query OK, 0 rows affected (0.00 sec)

然后就可以修改密码了

set password for root@localhost=password('root');

Query OK, 0 rows affected, 1 warning (0.00 sec)

修改密码后重启mysql

systemctl restart mysqld


首页
最新活动
个人中心