I give 777 access to the dietpi folder, maybe that was the case. Maybe mysql user can to give root group or samething?