MySQLUSER() Function
Example
Return the current user name and host name for the MySQL connection:
SELECT USER();
Try it Yourself »Definition and Usage
The USER() function returns the current user name and host name for the MySQL connection.
Note: This function is equal to theSESSION_USER() function and theSYSTEM_USER() function.
Tip: Also look at theCURRENT_USER() function.
Syntax
USER()
Technical Details
| Works in: | From MySQL 4.0 |
|---|

