Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to connect to mysql on ec2-instance from outside

Tags:

amazon-ec2

Am unable to connect to mysql database on ec2 from my current server .. using telnet i tried to check if the port is open .. but i get the following error .. "telnet: Unable to connect to remote host: Connection refused" ..

i checked the security group as well .. and it has MySQLL (port 3306) added .. The root device for the instance is EBS ..

any clue where i might be going wrong ??

Abhishek

like image 384
Abhishek Jain Avatar asked Oct 14 '22 21:10

Abhishek Jain


1 Answers

Check the /etc/my.cnf or where your MySQL config is stored. It probably contains something like bind_address=127.0.0.1 and/or skip-networking.

like image 81
Till Avatar answered Jan 01 '23 11:01

Till