设置远程访问(使用root密码):
grant all privileges on . to 'root' @'%' identified by '123456';
flush privileges;

添加了权限之后,还是连接不上数据库。必须给服务器的安全组设置端口放行规则

用Navicat连接阿里云ECS服务器上的MySQL数据库,连接不上,并且报10060错误

OK可以访问了

相关文章:

  • 2021-11-19
  • 2022-12-23
  • 2021-11-18
  • 2021-08-02
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-04-04
猜你喜欢
  • 2021-11-18
  • 2021-09-14
  • 2021-11-18
  • 2021-12-27
相关资源
相似解决方案