Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save jingmian/2abfd124efca0c253cdd3b67fdb641bf to your computer and use it in GitHub Desktop.

Select an option

Save jingmian/2abfd124efca0c253cdd3b67fdb641bf to your computer and use it in GitHub Desktop.
Navicat远程连接服务器上的Mysql数据库
//阿里云安全组开放
//mysql端开放
ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;
flush privileges;
//centos7防火墙开放3306
iptables -A INPUT -p tcp --dport 3306 -j ACCEPT
//保存配置
service iptables save
service iptables restar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment