用UPDATE直接编辑user表
首先登录MySQL。

C:\Program Files (x86)\MySQL\MySQL Server 5.1\bin>mysql -u root -p
mysql> use mysql;
mysql> update user set password=password(‘123’) where user=‘root’ and host=‘localhost’;
mysql> flush privileges;

如何修改mysql数据库密码(亲测有效加截图)

相关文章:

  • 2021-12-08
  • 2021-11-24
  • 2021-05-01
  • 2021-11-14
猜你喜欢
  • 2022-12-23
  • 2021-06-12
  • 2021-07-22
  • 2021-10-25
相关资源
相似解决方案