Tomcat Setup:
1) Download the MySQL JDBC Driver: http://dev.mysql.com/downloads/connector/j/5.1.html
2) Unzip the download file and move the mysql-connector-java-5.X.X-bin.jar file to
TOMCAT_HOME\common\lib
3) Edit TOMCAT_HOME\conf\context.xml - add the below before the closing </Context> tag. Replace the
user/pass with the database user you set up earlier.
<Resource name="jdbc/tlbDS" auth="Container" type="javax.sql.DataSource"
username="XXXXX"
password="XXXXX"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/tlb?autoReconnect=true"
validationQuery="Select 1" />