This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes mysql on web server ? ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "mysql on web server ? ?" Watch "mysql on web server ? ?" New topic

mysql on web server ? ?

kablan jean

Joined: Jun 17, 2002
Posts: 3
Thank to you all... I have mysql working extraordinally on my tomcat. Now I am trying to attack the big one. deploying the code on a web server.
I have a blanc page display when I am trying to request the database with a servlet. I think that the errors is in the URL
here is how I made the connection.
private String URL = "jdbc:mysql://";
Class.forName( "" ).newInstance();
connection = DriverManager.getConnection( URL, "xxx", "xxx");
statement = connection.createStatement ();
can anyone tell me if there is anything wrong with my URL. ( is my web page address and common is my database)
I agree. Here's the link:
subject: mysql on web server ? ?
It's not a secret anymore!