linliquan

1.进入阿里云服务器

  ssh 用户名@ip

2.进入数据库

  mysql -u root -p

3.设置mysql数据库权限(允许其他服务器连接数据库)

   grant all privileges on . to \'用户名\'@\'%\' identified by \'密码\' with grant option;

   grant all privileges on . to \'root\'@\'%\' identified by \'123456t\' with grant option;

  (ps:想要root用户使用密码123456从任何主机连接到mysql服务器)

修改mysql权限
4.进入数据库mysql查看user表

  select host,user from user

查看是否修改成功
5.本地打开Navicat,进行配置

 

 

 

 

参考:https://yq.aliyun.com/articles/656996

分类:

技术点:

相关文章:

  • 2021-06-20
  • 2021-08-29
  • 2021-11-11
  • 2021-08-06
  • 2022-12-23
  • 2021-08-02
  • 2021-12-23
猜你喜欢
  • 2021-12-31
  • 2021-06-28
  • 2021-08-09
  • 2021-10-05
  • 2021-11-29
相关资源
相似解决方案