Reputation: 807
I need to install JDBC for MySQL running in CentOS.
I tried using this command
yum install mysql-connector-java
but it says
No Package mysql-connector-java available
Nothing to do
Do you know any other command that aims to install JDBC?
Upvotes: 3
Views: 6059
Reputation: 807
Here's what I did to solve the issue:
Download the JDBC here
Extract the files anywhere you want. To extract follow the command below
tar -zxvf [TAR FILENAME]
You will find mysql-connector-java-5.1.22-bin.jar inside that folder. Copy that and paste to (in my case) /%android-sdk%/tools/lib
Add the new location of mysql-connector-java-5.1.22-bin.jar to classpath
Upvotes: 2
Reputation:
mysql java connector is platform independent. you can download it from following link http://dev.mysql.com/downloads/connector/j/
you can put jar file in /lib/ or /webapps//web-inf/libs
I am assuming that you are using tomcat.
Thank you
Upvotes: 0