USER
Return the current MariaDB user. This function returns the user name and host name provided by the client upon connection.
Syntax
USER()Description
Examples
shell> mysql --user="anonymous"
SELECT USER(),CURRENT_USER();
+---------------------+----------------+
| USER() | CURRENT_USER() |
+---------------------+----------------+
| anonymous@localhost | @localhost |
+---------------------+----------------+See Also
Last updated
Was this helpful?

