一、授权给用户远程访问的权利

  1. use mysql
  2. update user set host='%' where user='root';
  3. flush privileges;

二、对外开发端口

 切换到root用户 打开iptables的配置文件:vi /etc/sysconfig/iptables,插入

-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT

 全部修改完之后重启iptables: service iptables restart

三、使用SSH方式连接到服务器

使用Navicat连接腾讯云的MySQL数据库:

远程连接腾讯云主机中MySQL远程连接腾讯云主机中MySQL

 

相关文章:

  • 2021-06-30
  • 2021-07-08
  • 2022-01-04
  • 2021-11-22
  • 2021-12-17
猜你喜欢
  • 2022-12-23
  • 2022-01-23
  • 2021-12-13
  • 2021-05-29
  • 2021-04-09
  • 2021-10-16
  • 2021-06-09
相关资源
相似解决方案