• 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

mysql on web server ? ?

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic