zhizou

登录mysql之后

 服务器的防火墙一定要开启3306端口

# 设置外部网络访问mysql权限
mysql> update user set host = \'%\' where user =\'root\';
# 刷新一下权限
mysql> flush privileges;
# 所有外部访问者访问 (如java后台连接数据库等)
mysql> ALTER USER \'root\'@\'%\' IDENTIFIED WITH mysql_native_password BY \'你的密码\';

 

 

  

分类:

技术点:

相关文章:

  • 2021-07-29
  • 2021-10-13
  • 2021-12-19
  • 2021-12-19
  • 2021-12-19
  • 2021-12-19
  • 2021-12-19
  • 2021-12-19
猜你喜欢
  • 2021-12-19
  • 2021-08-12
  • 2022-03-09
  • 2022-03-07
  • 2021-07-16
  • 2022-01-18
相关资源
相似解决方案