1 、停止mysql5服务: net stop mysql5 2、开一个DOS窗口执行:(启动mysql,关闭权限的检查) c:\mysql\bin>mysqld-nt --skip-grant-tables & 3、再开一个DOS窗口执行: c:\mysql\bin>mysql mysql > update user set password = password(‘123456‘) where user = ‘root‘; root密码即为设置为123456!
原文地址:https://www.cnblogs.com/dazhulin/p/10406393.html
时间: 2024-10-22 09:00:12