mysql忘记密码

  1. cmd -->cd 安装路径/bin

  2. C:\Program Files\MySQL\MySQL Server 5.6\bin>mysql -hlocalhost -uroot

  3. use mysql;
    update user set password=password('newPwd') where user='root' and host='localhost';
    flush privileges;

你可能感兴趣的:(mysql,localhost,update,忘记密码,password)