Php Support For Mysql Mac El Capitan

 
Php Support For Mysql Mac El Capitan Average ratng: 6,3/10 6760 reviews

Sep 29, 2016 Mac OS X El Capitan came with PHP version 5.5 pre-installed. This PHP version has reached its end of life. Mac OS X Sierra comes with PHP 5.6 pre-installed. If you added any extensions to PHP you will need to recompile them.

  1. Php Support For Mysql Mac El Capitan 10 11
  2. Php Support For Mysql Mac El Capitan Download
  1. Brew install mysql on mac os el capitan. Ask Question Asked 4 years, 1 month ago. Active 1 year, 2 months ago. Viewed 13k times 24. I'm trying to install mysql on MAC OS version 10.11.2 by following the methods in this link, The following command has been successfully executed, brew install mysql.
  2. My Mac has the default installation of PHP 5.5 at /usr/bin/php and I want to remove it the right way because I want to have PHP 7 instead of this. So far no luck on how to uninstall the right way. I can't simply rm -rf /usr/bin/php because there's a lot of other components like php-cli, php-fpm, etc to be removed as well as apache and mysql.
  3. MacOS Mojave ships with PHP 7.1, High Sierra 7.1, Sierra ships with PHP 5.6, OSX 10.11 El Capitan with PHP 5.5.x, there is an easy upgrade method to either the latest PHP version 7.3 or 7.2 or you can also go back to the older stable version 5.6.

Php Support For Mysql Mac El Capitan 10 11

There are several ways to install MySQL on your Mac, for example:

  • compile from source
  • use the Homebrew package manager (http://brew.sh)
  • use a nifty script courtesy of Mac Mini Vault (http://git.io/eUx7rg)
  • or use the dedicated MySQL installer package (recommended)

I recommend the dedicated installer because it’s the only package that will also add a convenient Preference Pane for starting and stopping the service.

In this article I’ll focus on the latter, and I’ll also talk you through how to add MySQL to the PATH variable and how to secure MySQL to keep the evildoers away from your server.

These instructions will work on Yosemite and El Capitan (I’ve tested it on both systems – in fact that’s part of why I’m writing this, so that I can remember for next time).

Downloading and installing MySQL

You’ll find several packages at the MySQL website in the downloads section: http://dev.mysql.com/downloads/mysql/

If that link isn’t working, head over to http://mysql.com and find the Downloads section. Hunt for something called the Community GPL Downloads, and for a section called MySQL Community Server. That’s the Open Source version of MySQL. Pick a platform from the drop down menu (Mac OS X).

Again there are several versions you can download. You’ll probably want the DMG Archive equivalent to the version of OS X you’real running (this screenshot was taken in November 2015, things may have changed since then):

Double-click the file and you’ll be guided through a standard OS X installation. When the installer has finished, MySQL is installed on your system – but of course it’s neither running nor configured yet. We’ll take care of that in the next step.

Take a look under (Apple Logo) – System Preferences and see if you can find the MySQL Preference Pane. If you see that, all is well.

Starting and stopping MySQL

Start MySQL using the preference pane I’ve just mentioned. Tick the box that reads “automatically start MySQL server on startup” if you want that behaviour.

If you ever want to start/stop MySQL, this is the most convenient place to do it on your Mac. At times however, that fancy button is greyed out, which means that the Launch Daemon isn’t running. Should this happen, start the daemon via the command line manually, like this: