CURRENT_USER, CURRENT_USER()
Grammar Description
Return to the current user account, the returned account form is: user name @hostname. The return value is a string with the utf8mb3 character set.
Grammar Structure
SELECT CURRENT_USER();
Example
mysql> select current_user();
+---------------------+
| current_user() |
+---------------------+
| root@0.0.0.0 |
+---------------------+
1 row in set (0.00 sec)