Unable to connect with the MySQL database even though all the data is entered correctly

Hello,

I need help !!

I am getting this error when trying to connect with the MySQL database at the time of bulding new project or in any old project.

An error occurred while connecting to the database:
Connection attempt failed: SQLSTATE[HY000] [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 has failed to respond."

Everything was working fine and then I don’t know why this problem appeared that prevents me from connecting to the database

Notes:
1> I am using windows 10.
2> my IP address is static
3> my IP address is on the Whitelist of the host server
4> my Internet provider assures that the problem is not from them!!
5> my Host service provider assures that the problem is no from them!!

Maybe you must configure Mysql remote in host for your IP Address.

1 Like

Hello alvagar, :smiling_face_with_three_hearts:
Thank you for trying to help and for the advice!
After some examination it turns up that your suggestion is true !!
The IP address for my server has to be added into the remote MySQL !
This solves the problem as in the attached picture.


Thank you very much and have a nice time! :innocent:

1 Like