MySQL Error MY-010967 – ER_ANONYMOUS_AUTH_ID_NOT_ALLOWED_IN_MANDATORY_ROLES

MySQL Error Message

Can’t set mandatory_role %s@%s: Anonymous authorization
IDs are not allowed as roles.

Reason for the Error

ER_ANONYMOUS_AUTH_ID_NOT_ALLOWED_IN_MANDATORY_ROLES
was added in 8.0.4.