Successful visit Navicat Linux installed MySQL database
1, installed MySQL, check whether the normal login
2, database configuration into the remote connection mysql
#将所有数据库的所有表(*.*)的所有权限(all privileges),授予通过任何ip(%)访问的root用户,密码为123123,如果要限制只有某台机器可以访问,将其换成相应的IP即可
mysql> grant all privileges on *.* to 'root'@'%' identified by ' ';
mysql> flush privileges #刷新
3, quit mysql restart mysql
4, 3306 open ports so that it can be accessed remotely connected
Install iptables-services
yum install -y iptables-services
Open port 3306
vim /etc/sysconfig/iptables #编辑
#添加下面命令开启3306端口
-A INPUT -p tcp -m state --state NEW -m tcp --dport 3306 -j ACCEPT
5, reboot the firewall and set to boot from Kai
service iptables restart #重启防火墙
systemctl enable iptables.service #设置开机自动启动
6, the test is normal Navicat can access the database connection
7, this time to create a database table test file to verify that you can access synchronization
Navicat refresh of the database table