1) Download mm.mysql-2.0.14-bin.jar package, put it in a CommON / lib folder under Tomcat directory 2) Join before host> in the CONF / Server.xml in the Tomcat directory (note : All uppercase places to replace your own things) factory name> org.apache.commons.dbcp.basicDataSourceFactory value> parameter> driverclassname name> org.gjt.mm.mysql.driver value> Parameter> <-! The JDBC connection url for connecting to your MySQL dB The autoReconnect = true argument to the url makes sure that the mm.mysql JDBC Driver will automatically reconnect if mysqld closed the connection mysqld by default closes idle.. CONNECTIONS AFTER 8 Hours. ->
URL name> jdbc: mysql: // localhost: 3306 / database_name? AutoreConnect = true value> parameter> Username name> db_username value> parameter> password name> db_password value> parameter> maxactive name> 100 value> parameter> Maxidle name> 30 value> parameter> <