I have a remote server say 1.2.3.4 where I run a code to connect to MySQL which is on another (third) remote server. Now the piece of code runs perfectly fine from my local machine (It connects to Mysql on the Remote server), and that piece of code runs well from two other different IP addresses also.
But only from 1.2.3.4 server when I try to connect to MySQL it gives this Error:
OperationalError: (2003, “Can’t connect to MySQL server on ‘45.105.149.250’ (110)”)
What can be the Issue ?
Try
telnetto the server port 3306 and see if it goes through.That will tell you if it’s MySQL that has the issue or something else.