use this
driver to connect and use connectorJ Driver and keep the jar file in the class path
this solves ur problem
org.git.mm.mysql.driver