You just have to edit the config.php file with your favorite text editor and check that the database user is correct. Previously, it happened to me that it put oc_admin as the default user to connect to the database, the only thing you have to do is to change the parameters and it should look like this, just modify things according to your installation, the example is from an installation of version 21.0.2.1 with a DB MYSQL server. I hope it will be useful to you:
<?php $CONFIG = array ( 'instanceid' => '', 'passwordsalt' => '', 'secret' => '', 'trusted_domains' => array ( 0 => '[YOUR DOMAIN]', ), 'datadirectory' => '[NEXTCLOUD FOLDER PATH]', 'dbtype' => 'mysql', 'version' => '21.0.2.1', 'overwrite.cli.url' => 'https://[YOUR DOMAIN]', 'dbname' => '[NAME OF YOUR DB]', 'dbhost' => '[YOUR DB SERVER ADDRESS]', 'dbport' => '[PORT DB SERVER]', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'dbuser' => '[DB USER]', 'dbpassword' => '[DB PASSWORD]', 'installed' => true, );
1 Like