Mysql connection on webhost fail

I realize that there is one similar to my question but it is a few years old.
my connection address

jdbc:mysql://mycoolwebsite.com:3306/wrchtnoy_test

where wrchtnoy_test is the db name

I have tried the hosting credentials which according to the knowledge base should work
have also tried the db username and password
the db and username should have
wrchtnoy_

as a prefix. thanks.

Your webhosts server probably doesn’t have port 3306 open to remote connections. Most webhosts only allow localhost connections to the DB server. You’ll need to get port 3306 opened and your mysql user must be allowed to connect from a remote host. If you open a ticket with your hosts they may be able to fix this for you.

Thanks