# **CURRENT_USER_NAME()**

## **Function Description**

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

## **Function Syntax**

```text
> CURRENT_USER_NAME()
```

## **Example**

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