香港服务器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
Copyright © 2013-2024 8a.hk All Rights Reserved. 八艾云 版权所有 中山市八艾云计算有限公司 粤ICP备14095776号 粤公网安备 44200002445359号
增值电信业务经营许可证编号:B1-20222012
代理域名注册服务机构:西部数码