香港服务器mysql修改密码报错:ERROR 1290 (HY000) The mysql server is running with the –skip-grant-tables option so it cannot execute this statement
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