打开 mysql 的查询窗口(使用root),使用SQL:

-- 使用mysql库
use mysql;

-- 更新密码
update user set password=PASSWORD('xxxxxxxx') where User='root';

-- 开启外部访问权限
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'xxxxxxxx' WITH GRANT OPTION;
-- 提交
FLUSH PRIVILEGES;

 

相关文章:

  • 2021-12-15
  • 2021-09-18
  • 2022-12-23
  • 2021-12-25
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-08
  • 2022-12-23
  • 2021-07-08
  • 2021-12-28
  • 2022-12-23
  • 2021-10-14
  • 2021-05-22
相关资源
相似解决方案