1.打开cmd控制台

2.

  mysql -u root -p

  输入密码

3.

  mysql>grant all privileges on *.* to 'root' @'%' identified by '123' with grant option;

  mysql>flush privileges;

其中 '123' 是 'root' 的密码。再有命令结尾分号 ";" 别写丢了。

 

相关文章:

  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-08
猜你喜欢
  • 2021-04-12
  • 2021-07-08
  • 2021-07-13
  • 2021-12-09
  • 2022-12-23
  • 2021-06-14
  • 2022-12-23
相关资源
相似解决方案