USER
Description
Get the current username and IP address of the current connection.
Syntax
USER()
Return value
Returns the current username and IP address of the current connection.
format:<user_name>@<ip>
Examples
select user();
+---------------------+
| user() |
+---------------------+
| 'root'@'10.244.2.5' |
+---------------------+