SOLVED: Failed to load driver ‘com.mysql.jdbc.Driver’

Easy way to solve this error is to download ConnectorJ.

1) Step 1: wget –spider “http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.0.8.zip/from/http://mysql.he.net/”

2) Step 2: unzip mysql-connector-java-5.0.8.zip

3) Step 3: Add it to your includes

References:

i) http://dev.mysql.com/doc/refman/5.1/en/connector-j.html