Need to migrate your e-mails to a new server? Free and paid versions of our online tool available.
Hero Image

Install MariaDB on Arch Linux

Install MariaDB on Arch Linux

Step 1 – Install and secure

pacman -S --noconfirm mariadb
mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
systemctl enable --now mariadb
mysql_secure_installation

Step 2 – Create database and user

CREATE DATABASE appdb CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'appuser'@'localhost' IDENTIFIED BY 'StrongPass!';
GRANT ALL PRIVILEGES ON appdb.* TO 'appuser'@'localhost';
FLUSH PRIVILEGES;

Key /etc/mysql/my.cnf settings

[mysqld]
innodb_buffer_pool_size = 1G
character-set-server    = utf8mb4
collation-server        = utf8mb4_unicode_ci