远程访问mysql需要配置以下问题:
1.设置对外的用户和IP以及密码,IP必须是访问者的外网IP
grant all on *.* to root@124.74.76.126 identified by 'newpassword';
flush privileges;
2.关闭防火墙
关闭:service iptables stop
查看状态:service iptables status
3.在本地使用navicate访问
1.设置对外的用户和IP以及密码,IP必须是访问者的外网IP
grant all on *.* to root@124.74.76.126 identified by 'newpassword';
flush privileges;
2.关闭防火墙
关闭:service iptables stop
查看状态:service iptables status
3.在本地使用navicate访问