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.


  1. Ina Centaur Ina Centaur

    Is there a version for macports?

  2. David Lane David Lane

    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

      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

    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


Platinum Sponsors

MariaDB Foundation Platinum sponsors

Thank you,! Thank you, Alibaba Cloud! Thank you, Tencent Cloud! Thank you, Microsoft! Thank you, MariaDB Corporation!

Gold Sponsors

MariaDB Foundation Gold sponsors

Thank you, DBS! Thank you, Visma! Thank you, IBM! Thank you, Tencent Games!

Code statistics