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

Install MariaDB on NetBSD 10

Install MariaDB on NetBSD 10

Step 1 – Install and secure

pkgin install mariadb-server
mysql_install_db --user=mysql
echo 'mysqld=YES' >> /etc/rc.conf && service mysqld start
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 /usr/pkg/etc/mysql/my.cnf settings

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