I configured a new MySQL database in the config.php but my instance is instead using a previously configured SQLITE instance that was automatically setup during the initial installation.
How can I force Nextcloud to stop using the SQLITE database and use the one configured in the config/config.php file?
However, I am not trying to make conversion, just use a another already existing database.
I am trying to make a migration. I dumped the whole database and imported it to another DB cluster. I copied the whole /var/www/nextcloud folder and and copied it to a new server.
When I started the webserver I got the initial installation page, not the login page with my theme, my users etc. I’ve clicked the button to complete the setup not knowing it would create an SQLITE database.
It has also overwritten the config/config.php that I copied from the initial server.
So I tried copying back the config.php file and now the new Nextcloud instance does not take my database config into account.
There you can find infos from your database. Please check your config.php again. If you set up your webserver correctly it is /var/www/nextcloud/config/config.php.
I managed to find an explanation and a solution to my issue. The path to the data folder in the config.php was incorrect. The new server used /var/www/html instead of /var/www/nextcloud