#!/bin/sh DATADIR=${MYSQL_DATADIR:-"/data/mariadb"} MYSQL_OPTS=${MYSQL_OPTS:-""} [[ -f ./setup ]] && source ./setup exec su-exec mysql:mysql mysqld --bind-address=127.0.0.1 --datadir=$DATADIR --console $MYSQL_OPTS