Return the username and host name for the MySQL connection.
SELECT SESSION_USER(); |
The SESSION_USER() function returns the current username and hostname for the MySQL connection.
Note: This function is equivalent to SYSTEM_USER() and USER().
SESSION_USER() |
Works in: |
From MySQL version 4.0 |