Category Image Installing the MySQL JDBC Adaptor


This is pretty easy, as long as you are comfortable with using 2 or 3 basic terminal commands.

Go to http://www.mysql.com/products/connector-j/index.html and download the latest stable release of connector J. At time of this writing this is version 3.0.10 found at http://www.mysql.com/downloads/api-jdbc-stable.html where you can click on the Download link for the ZIP file.

Assuming this file was downloaded in a folder named /Users/Shared/Downloads/ then you will follow the following instructions.

Expand the mysql-connector-java-3.0.10-stable.zip (if not already done by your browser) which makes a folder named mysql-connector-java-3.0.10-stable. Inside this folder there is other folders including another "mysql-connector-java-3.0.10-stable" folder inside which you will find the .jar file which in this case is named "mysql-connector-java-3.0.10-stable-bin.jar".

Now open the terminal and type this ALL on one line (TIP: after "sudo cp " simply drag the .jar file from the Finder to the terminal to automatically enter the complete file pathname), then just type " /Library/Java/Extensions/" on the remainder of the command line and press <return>:
sudo cp /Users/Shared/Downloads/mysql-connector-java-3.0.10-stable/mysql
-connector-java-3.0.10-stable/mysql-connector-java-3.0.10-stable
-bin.jar /Library/Java/Extensions/

And there is the driver after installation....




Posted: Thursday - January 29, 2004 at 10:51 AM        


Published by