• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

database created using easyPHP

 
Ranch Hand
Posts: 1021
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
Bartender
Posts: 2661
19
Netbeans IDE C++ Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1021
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic