I just installed this today with 4.1.18 on RedHat 8. Put it in /usr/java/tomcat/lib (where /usr/java/tomcat is CATALINA_HOME).
The Driver classname is com.mysql.jdbc.Driver The connect string is the usual JDBC format: jdbc:mysql://SERVERADDRESS:3306/DATABASENAME?user=USER&password=PASS Where the things in caps are substituted with the usual stuff. I use something like the following to connect within my Java code: ------- String CONNECT_STRING = "com.mysql.jdbc.Driver"; String DATABASE_STRING = "jdbc:mysql:..."; String sQuery = "SELECT ..."; java.sql.Statement s = null; Class.forName(CONNECT_STRING).newInstance(); s = (DriverManager.getConnection(DATABASE_STRING,"","")).createStatement(); ResultSet r = s.executeQuery(sQuery); ------- And then I process the ResultSet. Adam Denenberg wrote: > Anyone have instructions for installing and configuring the mysql > connector/j jar file on tomcat 4.1.18 unix machine? I have the jar but not > sure how to configure tomcat to use the jar file.. Do I need to rename the > jar file to something specific? > > thanks > Adam > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
