I tried to create the file /etc/rc.conf.d/mysql-server with the content below, but it still does not work. The variables are called umask, but their value should be usermode, so the value is correct.
UMASK=0660
export UMASK
UMASK_DIR=0770
export UMASK_DIR