- 关闭MySQL服务
- 打开Dom控制台 进入MySQL的bin目录
- mysqld --console --skip-grant-tables --shared-memory
- 新打开一个DOM窗口
- mysql -u root -p
- use mysql;
update user set authentication_string=‘’ where user=‘root’; - 退出mysql,重启MySQL服务
- mysql -u root -p 回车 回车 (无密码直接登录)
- alter user ‘root’@‘localhost’ identified by ‘newpassword’;
- FLUSH PRIVILEGES
MySQL忘记密码修改密码
最新推荐文章于 2024-06-11 21:29:27 发布