srh snl
srh snl

Reputation: 807

cannot install mysql-connector-java, no package available

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

Answers (2)

srh snl
srh snl

Reputation: 807

Here's what I did to solve the issue:

  1. Download the JDBC here

  2. 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

user756706
user756706

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

Related Questions