[置顶] windows下mysql5.7忘记root密码后的解决方法
2017-05-30 20:20
411 查看
添加windows下mysql服务
以管理员身份打开cmd,执行
mysqld --install
net stop mysql
# 忘记密码找回
my.ini 的mysqld下添加
skip-grant-tables
# 启动mysql服务
net start mysqld
cd C:\Program Files\MySQL\MySQL Server 5.7\bin
mysql
use mysql
设置新密码
update mysql.user
set authentication_string=password('yongge999???')
where user='root' and Host =
'localhost';
flush privileges;
5.7以前版本可用UPDATE user SET Password=PASSWORD('newpassword') where USER='root';更新密码
以管理员身份打开cmd,执行
mysqld --install
net stop mysql
# 忘记密码找回
my.ini 的mysqld下添加
skip-grant-tables
# 启动mysql服务
net start mysqld
cd C:\Program Files\MySQL\MySQL Server 5.7\bin
mysql
use mysql
设置新密码
update mysql.user
set authentication_string=password('yongge999???')
where user='root' and Host =
'localhost';
flush privileges;
5.7以前版本可用UPDATE user SET Password=PASSWORD('newpassword') where USER='root';更新密码
相关文章推荐
- Windows下Mysql5.7忘记root密码的解决方法
- Windows下Mysql5.7忘记root密码的解决方法
- Windows 8.1下MySQL5.7 忘记root 密码的解决方法
- windows下mysql忘记root密码的解决方法
- Windows下mysql忘记root密码解决方法
- windows下mysql忘记root密码的解决方法
- windows下mysql忘记root密码的解决方法
- windows环境中mysql忘记root密码的解决方法详解
- Windows下mysql忘记root密码的解决方法
- windows下mysql5.1忘记root密码解决方法[win7]
- windows下mysql忘记root密码的解决方法(方法二OK)
- windows下mysql忘记root密码的解决方法
- windows环境中mysql忘记root密码的解决方法详解
- windows下mysql忘记root密码的解决方法
- Windows平台下MYSQL破解root密码(忘记root密码的解决方法)
- windows下mysql忘记root密码的解决方法
- windows下mysql5.1忘记root密码解决方法
- windows下mysql忘记root密码解决方法
- windows下mysql忘记root密码的解决方法
- windows下mysql忘记root密码的解决方法