zoukankan      html  css  js  c++  java
  • LNMP一键安装包安装的mysql远程连接不上的问题

    正常的做法: 

      以root用户登录mysql:

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

        flush privileges;

      例如:     

        mysql>grant all privileges on *.* to zhangsan@"%" identified by "123456";

        mysql>flush privileges;

      这里就是允许zhangsan用户远程登录, 密码是123456

    但是使用后发现还是远程连接不上,  原因是为了安全, lnmp禁止远程连接

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

      iptables -L -n --line-numbers

      

      删除对应的drop规则

      iptables -D INPUT 6

      然后远程连接, 成功连接  

    
    
  • 相关阅读:
    指针细说
    C++编码规范101
    关于C标准
    Bjarne Stroustrup语录2
    Bjarne Stroustrup 语录1
    计算机网络基础识别
    ssh
    matplotlib画图
    数据分析之Numpy
    数据分析
  • 原文地址:https://www.cnblogs.com/kuiba/p/9681614.html
Copyright © 2011-2022 走看看