File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes database created using easyPHP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "database created using easyPHP" Watch "database created using easyPHP" New topic

database created using easyPHP

tangara goh
Ranch Hand

Joined: Dec 27, 2009
Posts: 125
Hi experts,

I've learnt that majority of the web hosting company is using mysql for database.

As such, I have used easyPHP to created my database and saved it in mysql format.

My question is when comes to JDBC connectivity, do I follow the style of mysql because I don't have username and passwords, using easyPHP.

If not, what is the JDBC connectivity for this case in my servlet?

Hope someone can advise me. Many thanks.

Jan Cumps

Joined: Dec 20, 2006
Posts: 2565

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.

OCUP UML fundamental and ITIL foundation
tangara goh
Ranch Hand

Joined: Dec 27, 2009
Posts: 125
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.

I agree. Here's the link:
subject: database created using easyPHP
It's not a secret anymore!