Question
Account name versus login name: what identifies a database principal?
Answer
An account is the user-and-host identity selected at connection time; a login name is just the client-supplied user component. Grant privileges to the intended account identity, not every host using that name. Applies to MySQL and MariaDB.