Skip to content

CURRENT_USER_NAME()

Function Description

CURRENT_USER_NAME() is used to query the user name you are currently logged in.

Function Syntax

> CURRENT_USER_NAME()

Example

mysql> select current_user_name();
+--------------------------+
| current_user_name() |
+--------------------------+
| root |
+--------------------------+
1 row in set (0.01 sec)