编辑此文件

添加一行
skip-grant-tables

重新启动mysql
net stop mysql
net start mysql
- 2
跳过密码登陆
mysql -u root -p
直接按回车2次
修改密码
update mysql.user set authentication_string=password("root") where user="root";
刷新权限
flush privileges;
将my.ini文件还原(删除skip-grant-tables这一行),

重新启动 mysql
这个时候可以使用:** mysql -u root -p**
下面输入密码:root
即可进入


![[手游] 三网H5小游戏【少年仙路】WIN系服务端+Linux手工服务端+详细搭建教程](https://cdn.jxasp.com:9143/image/20260615/136BC33AA47EB0D84E878835A8B38FDB.png)

















