mysql忘记root密码怎么办
1、mysql的版本为5.7.16

3、重启mysql服务,生产环境中慎用

5、更新密码u衡痕贤伎se mysql;update user set authentication_string="123456&quo墉掠载牿t; where Host='localhost' and User='root';

7、再次重启mysql服务
1、mysql的版本为5.7.16
3、重启mysql服务,生产环境中慎用
5、更新密码u衡痕贤伎se mysql;update user set authentication_string="123456&quo墉掠载牿t; where Host='localhost' and User='root';
7、再次重启mysql服务