#!/bin/sh # Replace mariadb_root_password, mydb, myuser, and mypassword with your desired root password, MariaDB username, and password. # Update APK repositories apk update # Install MariaDB apk add mariadb mariadb-client # Initialize the database mysql_install_db --user=mysql --ldata=/var/lib/mysql # Start MariaDB rc-service mariadb start # Secure the MariaDB installation (optional but recommended) mysql_secure_installation <> /etc/my.cnf echo "bind-address = 0.0.0.0" >> /etc/my.cnf # Restart MariaDB to apply changes rc-service mariadb restart