Step 1: Get Homebrew Package Manager
First, you will need to have Homebrew which is the missing package for macOS. If you don't have Homebrew you can install it using the command below.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Step 2: Update Homebrew Repository
Step 3: Install MariaDB
To install MariaDB you need to use the "brew install" command and do refer to the other commands to install different version numbers.
brew install mariadb
brew search mariadb
Step 4: Start MariaDB
Now you can start MariaDB using the "brew services" command and also perform some other actions such as stop, get the running status and restart.
brew services start mariadb brew services restart mariadb brew servies stop mariadb
Step 5: Access MariaDB from Terminal
To test and access MariaDB from the terminal you can use the "mysql" command. If you do use GUI then we do recommend using Tableplus for that.
mysql -u root -p