USER( )

This MySQL function returns the user name and the hostname for the current MySQL connection. The function takes no arguments. It's synonymous with SESSION_USER( ) and SYSTEM_USER( ).

Syntax

Explanation

This function returns the user name and the hostname for the current MySQL connection. The function takes no arguments. It's synonymous with SESSION_USER( ) and SYSTEM_USER( ).

Examples

SELECT USER( );

+-------------------+
| USER( )           |
+-------------------+
| vita@localhost |
+-------------------+