Search code examples
phpmysqldatabase-connectiondreamweaver

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


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.