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