Nextcloud with MariaDB failed to start

I’m into making as many test runs as necessary to “OWN” the answers.
Built a NC instance on a MariaDB and Apache24/php74 platform. Searched for the connectivity issues with MariaDB and thought I’d found all of them. But still came back with not able to find the database.

Today I noticed a nice bit of code using occ
"$ cd /var/www/nextcloud/
$ sudo -u www-data php occ maintenance:install --database
“mysql” --database-name “nextcloud” --database-user “root” --database-pass
“password” --admin-user “admin” --admin-pass “password”
Nextcloud is not installed - only a limited number of commands are available
Nextcloud was successfully installed

I think this may be the answer. My question is since I let mysqli complete… the database is loaded with that code.

Can I simply erase or rename config.php, rename or delete the database and start over? Or is it way more complicated than that.


It says that it was installed. But you can’t find the database nextcloud? I think I didn’t get the point of your problem.

Yes that should be enough, perhaps the data-folder as well (in case this creates errors).