Arch Linux Tutorial - This tutorial is going to show you how to install MariaDB on Arch Linux. As you know, MariaDB is a free and open source relational database server which provides a high performance and reliability of a database system on top of Linux OS. Arch Linux is a great operating system for Desktop. But, it doesn’t mean that Arch Linux is not good for server.
On this Arch Linux tutorial, I am using the latest Arch Linux 2017 series, powered by Linux Kernel 4.12.4. MariaDB works great on this version. When this post is written, MariaDB 10.1 is available in Pacman repository. To install MariaDB on Arch Linux, please follow these steps
Step 1. Update Arch Linux
It is important to update our system to make sure we are running the latest packages.
sudo pacman -Syu
Step 2. Install MariaDB
Use this command to install MariaDB on Arch Linux
sudo pacman -S mariadb
The command will download and install MariaDB. After that, do not start mariadb service. We need to do some configuration first. Execute this command to complete the installation process.
mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
Now start mariadb service
sudo systemctl start mariadb
Secure MariaDB installation
sudo mysql_secure_installation
Follow on screen wizard to complete the process. And now we have a working MariaDB on Arch Linux 2017. Thanks for reading this post.
EmoticonEmoticon