Search code examples
mysqldatabasephpmyadminphpstormovh

Communications link failure - Connect to MySQL with PhpStorm


I'm trying to connect my MySQL database (that I got from OVH) with PhpStorm, but I continuously got the same error:

Connection to <NAME> failed.
[08S01] Communications link failure.
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.

I have searched a lot, but I still can't understand where this error comes from, or what to do to connect to my database. Is it even possible?

I've been stuck with that the whole day, so I will be glad for any information you can give me...

Edit: I know I didn't give you a lot of details, because I really don't know what could be useful. But I will gladly edit my post with more information.


Solution

  • After contacting OVH support, it seems that @LazyOne was correct: I simply cannot connect to the database using my local computer. The connection is only possible from PhpMyAdmin. Hence the error I got.

    This closed this question I believe, since the only possibility for me is to subscribe to another Database Plan (to get a database accessible from outside the datacenter).