File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes mysql on web server ? ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "mysql on web server ? ?" Watch "mysql on web server ? ?" New topic
Author

mysql on web server ? ?

kablan jean
Greenhorn

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://http://www.sauceeduc.com/common";
Class.forName( "org.gjt.mm.mysql.Driver" ).newInstance();
connection = DriverManager.getConnection( URL, "xxx", "xxx");
statement = connection.createStatement ();
can anyone tell me if there is anything wrong with my URL. (www.sauceeduc.com is my web page address and common is my database)
Thanks
Kablan!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: mysql on web server ? ?