Most providers give you the info you need to connect to the database from within their network: servername, port and account(s).
And you know the name of the database, because you created it with easyPHP.
That is the info you need to provide in your JDBC connection.
Most providers do not allow that you contact the database outside their network. You will have to test connection to the MySQL database from the Servlet container from the provider. You will not be able to establish the connection from your own computer.
Wow...thanks alot for sharing. I've been talking to the technical support of a web hosting company about this problem. Alas, the last reply shows that he doesn't even understand my predicament and worries.
I used the same English to talk to him but he just told me that I have to use the username and password, much like the mysql but then EasyPHP doesn't even have that.
Thanks alot so I just have to get it from the web hoster and change the connectivity codes accordingly.