uploading db-config.php and db.php leads to database error for main site

attached sample of db-config abd move-blogs.php

on upload, the main site stops with a database error (attached)

the database user name and password are correct with requireed previleges.

tried with both localhost as well as 127.0.0.1