Installation on MacOS, Linux and Windows
Installation on MacOS
Using Homebrew
- Once you install Homebrew, execute the below command to install MariaDB
brew install mariadb
- Start Maridb Server
mysql.server start
Installation on Linux
- Download the required version from MariaDB Downloads
- MariaDB offers packages for RedHat/CentOS/Fedora and Debian/Ubuntu
- openSUSE, Arch Linux, Mageia, Mint, Slackware distributions already include MariaDB package in their repositories.
How to install
- Login as
root
- Navigate to MariaDB directory and import GnuPG signing key
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
- Add MariaDB to sources.list file and add the below code in the file
sudo add-apt-repository 'deb http://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntuprecise main'
- Refresh the system using below command
sudo apt-get update
- Install MariaDB
sudo apt-get install mariadb-server
Installation on Windows
- Installation on windows is much easier using MSI file. Download the required version from MariaDB Downloads
- Just double click on the file and the setup will guide you through the installation and any settings if required.