Skip to content
Advertisement

How to download Mysql jdbc jar file on centos

Sorry for my noobness. I’m very newbie in linux and using CentOS. I need to download Mysql jdbc and place it in somewhere. So I searched on Google and couldn’t get any proper result. All results say that download it from http://dev.mysql.com/downloads/connector/j/5.1.html site or download rpm and install it. But I really don’t know how to download it first.

Advertisement

Answer

I finally figured it out. I just need to write this on the console

wget http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.30.tar.gz. -O /tmp/mysql-connector.tar.gz 

Then it downloads mysql-connector.tar.gz file in /tmp directory and to extract it I used this command:

tar -xvzf mysql-connector.tar.gz
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement