Can't connect to mySql database

I am trying to connect to a mySql database. I have tried with a php script and phpstorm to test the connection and they both fail. I can run through a local host but when trying to access the web host, i can’t connect. I am using the correct credentials but phpstorm produces this error when using jdbc:mysql://sql204.epizy.com:3306/epiz_22699894_user

“Connection to [email protected] 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.”

Any help is appreciated.

https://infinityfree.net/support/common-mysql-errors/ ?

Remote MySQL access is not possible on InfinityFree, so you cannot connect to the database from your own IDE. Remote MySQL is a premium only feature.

@Admin said:
Remote MySQL access is not possible on InfinityFree, so you cannot connect to the database from your own IDE. Remote MySQL is a premium only feature.

I see. This would explain why phpstorm and android studio won’t connect. Thank you.