The part after @ indicates the host from which user access is allowed. For example, for web applications where the web server server and MySQL are running on the same physical machine, this parameter is usually set to localhost . % means all hosts that say that the user is allowed to connect from any machine.
Although username@hostname1 and username@hostname2 use the same username, they are different users and may have different privileges.
source share