Supporting continuity and open collaboration

Mac OS X users can install MariaDB via Homebrew

The gist of it is, if you’ve installed Mac OS X and you use Homebrew, you’ll be pleased to note that you’re just a brew install away for getting a working MariaDB. Yes, that’s right, simply do: brew install mariadb and that’s it — you’ll have MariaDB (currently 5.2.6) installed in no time. For further documentation and a step-by-step guide, visit the Knowledgebase article: Building MariaDB on Mac OS X using Homebrew.

4 Comments

  1. Ina Centaur Ina Centaur
    2012-04-13    

    Is there a version for macports?

  2. David Lane David Lane
    2016-08-01    

    With some of the Apple security changes, esp in El Cap, a “brew install mariadb” is no longer sufficient.

    I had to modify a number of directory permissions before the brew install completed successfully
    Create the /usr/local/etc/my.cnf.d directory (because of the failure of the brew install perhaps?)
    Rerun the mysql_install_db directory (post install).

    Probably need a whole new write up on how to do the installation for El Cap.

    • David F David F
      2017-12-11    

      I need MySQL or MariaDB for a WordPress install on Mac OSX. I’m wondering if given what you said if MariaDB is not the way to go. I wanted something simple like a double-clickable package install…

  3. Dave E Dave E
    2018-02-24    

    No need to create the directory, also if you run `brew prune`, that directory will be removed. It’s better to open the config file at /usr/local/etc/my.cnf and comment out the following line:

    !includedir /usr/local/etc/my.cnf.d

    like this:

    # !includedir /usr/local/etc/my.cnf.d

    See: https://stackoverflow.com/a/22269766/123033

Platinum Sponsors

MariaDB Foundation Platinum sponsors

Gold Sponsors

MariaDB Foundation Gold sponsors

Code statistics