Owncloud database broken

Is there a way to regenerate the owncloud sql database if it is corrupt? Assuming there is nothing of importance stored there.

Try re-running the install script for MIAB. That may help (Although I am not sure if the installation script will touch the SQL DB if it already exists.)

You could, in theory reset the DB by removing all its contents (Backup first!!!) And then going through the install script again? I would ask @JoshData on GitHub or here.

That’s what I would do - delete the whole /home/user-data/owncloud directory and then re-run setup.