Search code examples
mysqlmacosupgrademysql-5.7

How to install MySQL 5.7.x on Mac OS Sierra


I need to obtain the functionality of MySQL 5.7. I had zend server 9 (first 9 version). After reinstallation of zend server (it doesn't supports upgrade). - Result: MySQL 5.5 !

May there exist solutions for:

  • Upgrade mysql inside zend framework?
  • Install other apache2.4+mysql5.7+php7 developer server?
  • some other solution.

Requirements:

  • PHP7.0.8 or later
  • MySQL 5.7
  • Apache 2.4 or later

Solution

  • mysql.com offers a automatic dmg installer, which I find I have the most success with. It typically installs in /usr/local/mysql so you may want to try deleting any other installations you have on your system first.

    You can download it here: https://dev.mysql.com/downloads/mysql/

    As for apache and php I find that I typically stick with the ones preloaded into os x, you can There are a number of articles out there on how to active these, but I believe its just a matter of uncommenting the php LoadModule line in /etc/apache2/httpd.conf

    #LoadModule php5_module libexec/apache2/libphp5.so
    

    and then starting apache in terminal with the apachectl command.