|
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.
|