Build difficulty

I’m having trouble running “dotnet ef migrations add AdministratorMigration” for an API project. I get the following message:

“The exception ‘Access denied for user ‘root’@‘localhost’ (using password: YES)’ was thrown while trying to find the ‘DbContext’ types. For the different patterns supported at design time.”

Does anyone know how to fix this?

What have you tried so far? What kind of database are you using? This looks like a MySQL database error but we need more information to help.