Install with pacman
sudo pacman -Syu mariadb
sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
sudo systemctl start mysqld
sudo systemctl enable mysqld
mysqladmin -u root password NewPassword
mysql_secure_installation
Code language: JavaScript (javascript)
More help here – LINK