Allow remote access to mysql database
In most cases you need to manage your mysql database by remote using SQLYog or any third party software to make easy database management, instead of using the pure text command in linux, now here is procedure to allow remote access to your mysql on linux server
1. login to your linux shell with root access and on the the shell command type this command
$ mysql --user=your-user-name --password=your-password
mysql> GRANT ALL ON foo.* TO bar@'IP' IDENTIFIED BY 'PASSWORD';
where foo is your database and IP is the ip address of your computer
Here is a sample iptables rule to open Linux iptables firewall
# /sbin/iptables -A INPUT -i eth0 -p tcp --destination-port 3306 -j ACCEPT
# service iptables save
some references link can also be browse
here