Download and Install mysql3 version 3.23.58 on Mac OS X
Thursday the 20th of November, 2008

    version 3.23.58

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



      # $Id: Portfile 37318 2008-06-03 00:31:21Z ryandesign macports.org $

      PortSystem 1.0
      Name: mysql3
      Version: 3.23.58
      Category: databases
      Maintainers: ryandesign openmaintainer
      Description: Multithreaded SQL database server
      Homepage: http://www.mysql.com/
      Platform: darwin
      use_parallel_build yes

      Long Description: MySQL is an open-source, multi-threaded SQL database with a command syntax very similar to mSQL.

      master_sites http://mysql.mirrors.pair.com/Downloads/MySQL-3.23/ http://mysql.he.net/Downloads/MySQL-3.23/ http://mirrors.sunsite.dk/mysql/Downloads/MySQL-3.23/ http://ftp.plusline.de/mysql/Downloads/MySQL-3.23/ freebsd

      distname mysql-${version}
      checksums md5 835a96c86132fbde0db36db60c5b34cd
      patchfiles patch-libmysql-violite.c patch-sql-violite.c

      depends_lib port:ncurses port:zlib

      set dbdir ${prefix}/var/db/mysql

      configure.ldflags-append "-lncurses"

      configure.args --includedir=${prefix}/include/${name} --libdir=${prefix}/lib/${name} --bindir=${prefix}/lib/${name}/bin --localstatedir=${dbdir} --without-server --sysconfdir=${prefix}/etc/${name} --without-bench --mandir=${prefix}/share/man --infodir=${prefix}/share/info

      set binaries "mysql mysql_access"
      post-destroot {
      system "cd ${destroot}${prefix} && rm -rf mysql-test share/info"
      system "cd ${destroot}${prefix}/share && mv mysql ${name}"
      foreach b ${binaries} {
      system "cd ${destroot}${prefix}/bin && ln -s ../lib/${name}/bin/${b} ${b}3"
      }
      }

      Variant: innodb { configure.args-append --with-innodb }

      Variant: server {
      configure.args-delete --without-server

      startupitem.create yes
      startupitem.start "${prefix}/share/mysql/mysql.server start"
      startupitem.stop "${prefix}/share/mysql/mysql.server stop"

      pre-destroot {
      addgroup mysql
      set gid [existsgroup mysql]
      adduser mysql gid=${gid} realname=MySQL\ Server

      xinstall -o mysql -g mysql -m 755 -d ${dbdir}
      }

      post-destroot {
      xinstall -m 644 ${worksrcpath}/support-files/my-medium.cnf ${destroot}${prefix}/etc/${name}/my.cnf
      }

      post-install {
      ui_msg "=================================================================\n"
      ui_msg "If this is a new installation of MySQL, you must run\n${prefix}/bin/mysql_install_db after installing this port!\n"
      ui_msg "You must also run:\n\n 'chown -R mysql:mysql ${dbdir}'\n\nbefore starting the MySQL daemon.\n"
      ui_msg "=================================================================\n"
      }
      }

      platform darwin 6 { depends_lib-append lib:libdl:dlcompat }

    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/mysql3
      % sudo port install mysql3
      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 mysql3
      ---> Verifying checksum for mysql3
      ---> Extracting mysql3
      ---> Configuring mysql3
      ---> Building mysql3 with target all
      ---> Staging mysql3 into destroot
      ---> Installing mysql3
    - 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 mysql3 with these commands:
      %  man mysql3
      % apropos mysql3
      % which mysql3
      % locate mysql3

     Where to find more information:

    Darwin Ports



    Lightbox this page.