aspose file tools*
The moose likes JDBC and the fly likes database created using easyPHP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "database created using easyPHP" Watch "database created using easyPHP" New topic
Author

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
Bartender

Joined: Dec 20, 2006
Posts: 2500
    
    8

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
youtube channel
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: http://aspose.com/file-tools
 
subject: database created using easyPHP