首先打开运行窗口输入cmd进入DOS界面或者打开MySQL Workbench
Step1: cd C:\Program Files\MySQL\MySQL Server 5.6\bin
Step2: mysql(不需要密码)或者mysql -uroot(不需要密码)或者mysql -u root -p(需要输入密码)
Step3: grant all on *.* to 'root'@'localhost' identified by '123456';
标红处为新密码
Step4: flush privileges;

相关文章:

  • 2021-12-06
  • 2021-10-23
  • 2021-12-10
  • 2021-06-03
  • 2021-12-06
  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-10
  • 2021-12-06
  • 2021-12-06
  • 2022-02-14
  • 2021-12-06
  • 2021-11-10
  • 2021-12-06
相关资源
相似解决方案