因为lnmp一键安装包默认把3306端口禁止远程连接, 所以必须把端口限制解除

 

查看已有iptables规则, 用序号显示

iptables -L -n --line-numbers

 

lnmp一键安装包 的 mysql远程连接问题解决

 

删除对应的drop规则

iptables -D INPUT 6

 

 

 

如未设置远程登录账号可设置如下.远程登录:

---  grant all privileges on *.* to 创建的用户名@"%" identified by "密码";

--- 例:  grant all privileges on *.* to root@"%" identified by "root";

flush privileges;

 

 

然后就可以正常远程连接了...   

 

相关文章:

  • 2021-12-14
  • 2021-12-08
  • 2021-11-08
  • 2021-09-27
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
猜你喜欢
  • 2021-10-10
  • 2021-05-22
  • 2021-11-25
  • 2021-12-27
  • 2021-07-07
相关资源
相似解决方案