MySQL root保存在WorkBench中的密码忘记了怎么办

来源:互联网 发布:vscode git插件 编辑:程序博客网 时间:2024/05/19 12:12

通过WorkBench连接上MySQL,然后改数据库mysql下的user表:

  update user set Password = PASSWORD('newPassword') where user = 'root' and Host = 'localhost';

0 0