Installing MariaDB Server on macOS Using Homebrew
You are viewing an old version of this article. View
the current version here.
Contents
Work has been done to provide MariaDB Server via the Homebrew package manager.
After installing Homebrew, MariaDB Server can be installed with this command:
brew install mariadb
After installation, start MariaDB Server:
mysql.server start
The brew package also bundles a launchctl
config that can be used to get MariaDB to auto-start with the system, see brew info mariadb
to view this.
Now you can just run mysql -uroot
to log in.
Upgrading MariaDB
First you need to update your brew installation. You do this by issuing the brew update
command. Next you simply run:
brew upgrade mariadb
You may see error messages as follows if you are running OS X 10.7:
Warning: Your Xcode (4.3.3) is outdated Please install Xcode 4.5.2.
You can safely ignore these errors and upgrade to 5.5.28 without issue.
Other resources
- mariadb.rb on github
- Terin Stock (terinjokes) who is the packager for Homebrew
Comments
Comments loading...
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.