My SQL Error: A connection attempt failed because the connected party did not properly respond

Issue

I have a MySQL database in a 3rd party server. I am trying to access it from my local machine using PHP in Dreamweaver. However, I am getting the following error:

MySQL Error #2002:
A connection attempt failed because the connected party did not properly respond
after a period of time, or established connection failed because connected host
failed to respond.

Thank you.

Solution

It means you can’t connect to the server. Check your connecting to the correct IP address and your firewall is configured to allow traffic.

Answered By – Tom Squires

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published