美文网首页
mysql root 用户不能远程连接lnmp 的mysql s

mysql root 用户不能远程连接lnmp 的mysql s

作者: phpdi | 来源:发表于2019-02-12 20:36 被阅读0次

没有给root对应的权限

mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.1.123' IDENTIFIED BY '' WITH GRANT OPTION; 
mysql> FLUSH PRIVILEGES;

为了安全LNMP默认是禁止远程连接的,开启方法

//查看已有的iptables规则,以序号显示

iptables -L -n --line-numbers

//删除对应的DROP规则
iptables -D INPUT 5

相关文章

网友评论

      本文标题:mysql root 用户不能远程连接lnmp 的mysql s

      本文链接:https://www.haomeiwen.com/subject/fzxleqtx.html