Posted By:
Paul_Hunnisett
Posted On:
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
Posted By:
Ken_Kong
Posted On:
Wednesday, June 12, 2002 11:58 PM
Here is one of the example:
Class.forName("org.gjt.mm.mysql.Driver");
Connection con = DriverManager.getConnection("jdbc:mysql:///databasename", "user", "password");
Make sure that the user has grant priviliges in mysql by using grant syntax.