I'm very new to Ubuntu. I couldn't able to connect to mysql via my programming language. 

I know all my property file in my code is correct. But still I couldn't able to connect to mysql. I guess my firewall is blocking me out. 

I have `ufw` firewall installed, how do I enable 3306 port in that? 

I tried these [steps](http://concisedeveloper.com/linux/how-to-open-mysql-port/) but doesn't get the solution. 

Thanks in advance.