Information Functions MySQL Tutorial

mysql>
mysql> select SESSION_USER();
+----------------+
| SESSION_USER() |
+----------------+
| root@localhost |
+----------------+
1 row in set (0.00 sec)