mysql-connector 3.1.x..Database is not getting connected
I am not able to connect to the MySql database using the Connector/J version 3.1.10 (not with any of the 3.1 and further version). But the connection is possible with the 3.0.x version. Since 3.0.x does not come up with procedure and transaction I cannot use it.
The error I get is as follows (for using the 3.1.10 connector)
Cannot connect to database server java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
I have tried explicitly giving the classpath.. i.e., java -classpath <path to the jar file mysql-connector-java-3.1.10-bin.jar> <class name>
like java -c ~/mysql/mysql-connector-java-3.1.10/mysql-connector-java-3.1.10-bin.jar Connect
This also does not work.
Can any one suggest me a solution plz
|