# 授权所有,youpassword为登录密码
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'youpassword' WITH GRANT OPTION;

# 指定IP
GRANT ALL PRIVILEGES ON *.* TO 'root'@'171.111.8.130' IDENTIFIED BY 'youpassword' WITH GRANT OPTION;

# 如果失败删除后重新授权
delete from user where host = '171.111.8.130' and user = 'root';

# 保存配置
flush privileges;

 

相关文章:

  • 2022-02-09
  • 2022-01-30
  • 2021-12-06
  • 2021-06-15
  • 2022-02-22
  • 2022-12-23
  • 2021-11-13
  • 2021-07-11
猜你喜欢
  • 2022-12-23
  • 2021-09-17
  • 2022-12-23
  • 2021-11-06
  • 2023-04-07
  • 2021-06-24
  • 2021-12-11
相关资源
相似解决方案