Php5-mysql - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    php5-mysql  most recent diff


    version

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


      The php5-mysql Portfile 57749 2009-09-16 04:30:02Z ryandesign macports.org $

      PortSystem 1.0
      PortGroup php5extension 1.0

      php5extension.setup mysql 5.3.0 bundled
      php5extension.use_phpize no
      Category:-append databases
      Platform: darwin
      Maintainers: ryandesign

      Description: a PHP interface to MySQL databases, including the mysql, mysqli and pdo_mysql extensions

      Long Description: ${description}

      Checksums: md5 846760cd655c98dfd86d6d97c3d964b0 sha1 934700941d216c453376e3bf24347041cf12c6dc rmd160 9a71b74052b0ca515f2ddf95c051b47a73d33f44

      depends_lib-append port:zlib

      configure.args-append --with-zlib-dir=${prefix} --enable-pdo

      use_parallel_build yes

      Variant: mysqlnd conflicts mysql4 mysql5 description {Use MySQL Native Driver} {
      configure.args-append --with-mysql=shared,mysqlnd --with-mysqli=shared,mysqlnd --with-pdo-mysql=shared,mysqlnd
      post-install {
      set phpini ${prefix}/etc/php5/php.ini
      if {1} {
      ui_msg "To use mysqlnd with a local MySQL server, edit ${phpini} and set"
      ui_msg "mysql.default_socket, mysqli.default_socket and pdo_mysql.default_socket"
      ui_msg "to ${prefix}/var/run/mysql5/mysqld.sock"
      }
      }
      }

      Variant: mysql4 conflicts mysql5 mysqlnd description {Use MySQL 4 libraries} {
      depends_lib-append port:mysql4
      configure.args-append --with-mysql=shared,${prefix} --with-pdo-mysql=shared,${prefix}
      }

      Variant: mysql5 conflicts mysql4 mysqlnd description {Use MySQL 5 libraries} {
      depends_lib-append path:bin/mysql_config5:mysql5
      configure.args-append --with-mysql=shared,${workpath}/mysql5 --with-mysqli=shared,${prefix}/bin/mysql_config5 --with-pdo-mysql=shared,${prefix}/bin/mysql_config5 --with-mysql-sock=${prefix}/var/run/mysql5/mysqld.sock
      post-extract {
      file mkdir ${workpath}/mysql5
      file link -symbolic ${workpath}/mysql5/lib ${prefix}/lib/mysql5
      file link -symbolic ${workpath}/mysql5/include ${prefix}/include/mysql5
      }
      }

      if {![variant_isset mysql4] && ![variant_isset mysql5]} {
      default_variants +mysqlnd
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.