Failed to connect to the database after relocating

Hello community,
I used to run a nextcloud on a server but I had to change the server. I copied everything on the new one, including the MySql DB, but I now have this problem of connection:

An unhandled exception has been thrown:

Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [1045] Access denied for user ‘oc_bb’@‘localhost’ (using password: YES) in /srv/data/…/lib/private/DB/Connection.php:68

I can access my DB manually, but I’d like to check if I can access it manually with NC parameters.
Thanks for any help…
Emmanuel

My config is :

$CONFIG = array (
‘instanceid’ => ‘ocht0kksbr6o’,
‘passwordsalt’ => ‘xx’,
‘secret’ => ‘yy’,
‘trusted_domains’ =>
array (
0 => ‘cloud.aoris.fr’,
),
‘datadirectory’ => ‘zz’,
‘dbtype’ => ‘mysql’,
‘version’ => ‘18.0.4.2’,
‘overwrite.cli.url’ => ‘http://cloud.aoris.fr/nc’,
‘dbname’ => ‘aa’,
‘dbhost’ => ‘localhost’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘mysql.utf8mb4’ => true,
‘dbuser’ => ‘oc_bb’,
‘dbpassword’ => cc,
‘installed’ => true,
‘maintenance’ => true,

);

It’s all right, I had to recreate the DB users…