This post provides a step-by-step guide with a list of commands on how to install MariaDB on macOS using Homebrew. MariaDB is a community-developed fork of the MySQL relational database management system intended to remain free under the GNU GPL.
What is MariaDB?
“MariaDB intends to maintain high compatibility with MySQL, ensuring a drop-in replacement capability with library binary parity and exact matching with MySQL APIs and commands. It includes the XtraDB storage engine for replacing InnoDB, as well as a new storage engine, Aria, that intends to be both a transactional and non-transactional engine perhaps even included in future versions of MySQL. Development is led by some of the original developers of MySQL, who forked it due to concerns over its acquisition by Oracle Corporation.” ~ Wikipedia
What is Homebrew?
Homebrew is a free and open-source software package management system that simplifies the installation of software on Apple’s macOS operating system. It is known as the missing package manager for macOS.
The following is the single command required to install MariaDB on macOS using Homebrew.
$ brew install mariadb
This section provides a quick set of commands on how to install MariaDB on macOS using Homebrew. It is assumed that Homebrew is already installed. If not, please follow this link.
$ brew update # Fetch latest version of homebrew and formula. $ brew search mariadb # Searches for formula called mariadb $ brew info mariadb # Displays information about mariadb $ brew install mariadb # Install the mariadb formulae. $ brew cleanup # Remove any older versions of any formula
Congratulations! You have successfully installed MariaDB on macOS making use of Homebrew. Follow me on any of the different social media platforms and feel free to leave comments.