View Single Post
Old Oct 10th, 2006, 3:07 AM   #8
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
A typical value for the url would be "jdbc:mysql://localhost:3306/<database name>". Note that with MySQL, you have to GRANT appropriate priviledges to the user accessing the database otherwise you'll get a "Server configuration denies access to data source" error.

And no, you don't need a webserver to run JDBC code. You can run it straight from a normal "main()" application.
Arevos is offline   Reply With Quote