In MySQL, USER()
is a built-in function that returns the current MySQL user name and host name, given when connecting to MySQL.
The result is returned as a string in the utf8mb3
 character set.
The value returned by USER()
could be different to the value returned by CURRENT_USER()
.