Download and Install mysql-connector-java version 5.0.7 on Mac OS X
Tuesday the 8th of July, 2008

    mysql-connector-java  most recent diff


      View the most recent changes for the mysql-connector-java port at: mysql-connector-java.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for mysql-connector-java.
      The raw portfile for mysql-connector-java 5.0.7 is located here:
      http://mysql-connector-java.darwinports.com/dports/java/mysql-connector-java/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/mysql-connector-java
      Google
      Web Darwinports.com



      # $Id: Portfile 35275 2008-03-23 15:54:42Z jberry macports.org $

      PortSystem 1.0

      Name: mysql-connector-java
      Version: 5.0.7

      Category: java
      Maintainers: jberry openmaintainer
      Platform: darwin

      Description: MySQL Official JDBC connector for MySQL database.
      Long Description: MySQL Connector/J is a native Java driver that converts JDBC (Java Database Connectivity) calls into the network protocol used by the MySQL database. It lets developers working with the Java programming language easily build programs and applets that interact with MySQL and connect all corporate data, even in a heterogeneous environment. MySQL Connector/J is a Type IV JDBC driver and has a complete JDBC feature set that supports the capabilities of MySQL.
      Homepage: http://dev.mysql.com/doc/refman/5.0/en/connector-j.html

      master_sites http://ftp.plusline.de/mysql/Downloads/Connector-J/
      checksums md5 d177ce7397b119f013458cec0418ad2d sha1 df3b78d1108f89485fb8c9711ee39c376d0391eb rmd160 eae7454d156c7726ab2e96017e8b6f4fe0c61ab9

      patchfiles patch-build.xml

      depends_build bin:ant:apache-ant
      depends_lib bin:java:kaffe port:junit port:jakarta-log4j


      set javaLibs ${prefix}/share/java

      use_configure no

      build.cmd ant
      build.target dist
      build.args -Djunit.jar=${javaLibs}/junit.jar -Dlog4j.jar=${javaLibs}/jakarta-log4j.jar

      destroot {
      xinstall -m 755 -d ${destroot}${prefix}/share/java ${destroot}${prefix}/share/doc
      xinstall -m 644 ${worksrcpath}/build/${distname}/${distname}-bin.jar ${destroot}${prefix}/share/java/${name}-5.0.jar
      file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
      }

      livecheck.check regex
      livecheck.url http://dev.mysql.com/downloads/connector/j/5.0.html
      livecheck.regex "${name}-(\\d+\\.\\d+(\\.\\d+)?).tar.gz"

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/mysql-connector-java
      % sudo port install mysql-connector-java
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching mysql-connector-java
      ---> Verifying checksum for mysql-connector-java
      ---> Extracting mysql-connector-java
      ---> Configuring mysql-connector-java
      ---> Building mysql-connector-java with target all
      ---> Staging mysql-connector-java into destroot
      ---> Installing mysql-connector-java
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using mysql-connector-java with these commands:
      %  man mysql-connector-java
      % apropos mysql-connector-java
      % which mysql-connector-java
      % locate mysql-connector-java

     Where to find more information:

    Darwin Ports



    image test