MySQL修改密碼報(bào)錯(cuò):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
11975
MySQL修改密碼報(bào)錯(cuò):ERROR 1290 (HY000) The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement
修改MySQL數(shù)據(jù)庫(kù)密碼報(bào)1290 錯(cuò)誤 如下:
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
會(huì)員登錄
賬號(hào)登錄還沒(méi)有賬號(hào)?立即注冊(cè)