Mysql5-server version 5.1.41 - How to Download and Install on Mac OS X
Sunday the 21st of March, 2010

    mysql5-server  most recent diff


    version 5.1.41

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


      The mysql5-server Portfile 60732 2009-11-21 07:42:31Z ryandesign macports.org $

      PortSystem 1.0

      Name: mysql5-server
      Version: 5.1.41
      set branch [join [lrange [split ${version} .] 0 1] .]
      Homepage: http://www.mysql.com/
      Category: databases
      Platform: darwin
      Maintainers: ryandesign
      license GPLv2
      distfiles

      Description: Multithreaded SQL database server

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

      depends_run port:mysql5

      set major_version [strsed ${version} {s/\..*$//}]
      set mysql mysql${major_version}
      set libdir ${prefix}/lib/${mysql}
      set bindir ${libdir}/bin
      set dbdir ${prefix}/var/db/${mysql}
      set sysconfdir ${prefix}/etc/${mysql}

      if {"darwin" == ${os.platform} && ${os.major} > 8} {
      set mysqluser _mysql
      } else {
      set mysqluser mysql
      }

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

      use_configure no

      build {}

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

      xinstall -m 755 -o root -d ${destroot}${prefix}/var/run

      xinstall -m 755 -o ${mysqluser} -g ${mysqluser} -d ${destroot}${dbdir} ${destroot}${prefix}/var/log/${mysql} ${destroot}${prefix}/var/run/${mysql}
      destroot.keepdirs-append ${destroot}${dbdir} ${destroot}${prefix}/var/log/${mysql} ${destroot}${prefix}/var/run/${mysql}
      }

      post-install {
      ui_msg "******************************************************"
      ui_msg "* In order to setup the database, you might want to run"
      ui_msg "* sudo -u ${mysqluser} mysql_install_db5"
      ui_msg "* if this is a new install"
      ui_msg "******************************************************"
      }

      livecheck.type regex
      livecheck.url http://dev.mysql.com/
      livecheck.regex "(5\\.1\\.\[0-9\.\]+)"

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.