Tuesday, July 9, 2002 03:32 AM
You will need to put the driver jar file on your classpath. A common gotcha is that name resolution doesn't always work - if you get any access problems, then try using an ip address in the connection url
Wednesday, June 12, 2002 11:58 PM
Here is one of the example:
Connection con = DriverManager.getConnection("jdbc:mysql:///databasename", "user", "password");
Make sure that the user has grant priviliges in mysql by using grant syntax.