CURRENT_USER
Return the authenticated user name. This function displays the user name and host name combination used by the server to authenticate the current client.
Syntax
CURRENT_USER, CURRENT_USER()Description
Examples
shell> mysql --user="anonymous"
SELECT USER(),CURRENT_USER();
+---------------------+----------------+
| USER() | CURRENT_USER() |
+---------------------+----------------+
| anonymous@localhost | @localhost |
+---------------------+----------------+See Also
Last updated
Was this helpful?

