Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open Port 3306 in ubuntu 12.04 to allow connections to mysql from any ip [closed]

Tags:

mysql

ubuntu

I have a mysql server running on a server and I wanted to know how to Open a Port 3306 in ubuntu 12.04 to allow connections to mysql from any ip. Can you help? Thanks

like image 728
user1244772 Avatar asked Aug 08 '12 23:08

user1244772


1 Answers

I Don't think firewall is your problem. Any modern mysql version has bind-address=127.0.0.1 in its my.cnf, which makes it bind to loopback only. Comment it out, restart mysql and you should be good to go. Ubuntu doesn't have a restrictive firewall by default IIRC.

like image 87
favoretti Avatar answered Sep 19 '22 14:09

favoretti