Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

database created using easyPHP

 
tangara goh
Ranch Hand
Posts: 125
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2577
11
C++ Linux Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
tangara goh
Ranch Hand
Posts: 125
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic