Answer the question
In order to leave comments, you need to log in
Why doesn't PHP always connect to an external whine DB?
Periodically, with a probability of 50%, when trying to connect to an external whining database via PHP (PDO), an error occurs:
SQLSTATE[HY000] [2002] An attempt to establish a connection was unsuccessful, because. the required response was not received from another computer within the required time, or an already established connection was terminated due to an incorrect response from an already connected computer.
Tried different versions of PHP, now settled on PHP-7+Apache. Windows 10. What could be the problem?
Answer the question
In order to leave comments, you need to log in
They say that vagrant helps to get rid of such problems, but I didn’t understand the joke at all to set up the test environment for an hour or two, and then also run it for 10 minutes.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question