- Apache Mac
- Mysql Mac Os X
- Php Support For Mysql Mac El Capitan 10
- Php Support For Mysql Mac El Capitan Update
- Mysql Mac Client
- Mysql Mac Tutorial
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)
Like other users I am unable to install MySQL Utilities 1.5.6 or earlier; I also tried to install MySQL Connector/Python 2.1.3 (as suggested earlier in the thread on this issue OS X 10.11.1 (El Capitan) but that also failed. Nov 29, 2015 In this tutorial we will learn how to set up apache web server and a user root for mac os x 10.11 el capitan. The apache,php,mysql.txt for copy and past instructions on Github Gist: https://gist.
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: