MySQL SYSTEM_USER() Function
THE WORLD'S LARGEST WEB DEVELOPER SITE

MySQL SYSTEM_USER() Function

❮ MySQL Functions

Example

Return the user name and host name for the current MySQL user:

SELECT SYSTEM_USER();
Try it Yourself »

Definition and Usage

The SYSTEM_USER() function returns the user name and host name for the current MySQL user.

Note: The SESSION_USER() and SYSTEM_USER() functions are synonyms for the USER() function.

Syntax

SYSTEM_USER()

Technical Details

Works in: MySQL 5.7, MySQL 5.6, MySQL 5.5, MySQL 5.1, MySQL 5.0, MySQL 4.1, MySQL 4.0, MySQL 3.23

❮ MySQL Functions