Install Database server

Install MariaDB

MariaDB is a Open Source Database server.

$ sudo pacman -S mariadb

Setup MariaDB server

$ sudo mysql_install_db --user=mysql --basedir=/usr 
--datadir=/var/lib/mysql

Start and Enable Database server

$ sudo systemctl start mariadb
$ sudo systemctl enable mariadb

Secure Installation

For security issue, secure installation script should be run at first before using MariaDB.

$ sudo mysql_secure_installation

Notice: The first root password is set empty. So If you are requested the root password, you should only hit a Enter key.

On all questions, you would answer “yes” for safety.

Last Updated on May 21, 2022 by Kenn


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *