Installation on Arch Linux
On Arch, the official mysql provider is MariaDB, so sudo pacman -S mariadb is the native, repository-supported route (no AUR required). This is the platform MySQL itself cannot cover natively.
Mandatory step: initialize the data directory
Unlike Debian/Ubuntu and Fedora, Arch does not create the data directory at install time. Initialize it explicitly before the first start:
sudo mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysqlOnly then can you sudo systemctl enable --now mariadb. Forgetting this command is the most common cause of startup failure on Arch.
Securing the installation
After the first start, run sudo mariadb-secure-installation to set the root password, remove anonymous accounts, and drop the test database. The configuration lives in /etc/my.cnf.d/ as drop-in files.