Skip to main content

Who Am I In MySql?

(2023-05-02)

You can use the CURRENT_USER and USER functions as follows:

SELECT CURRENT_USER();
SELECT USER();

CURRENT_USER shows who you are authenticated as, while USER shows who you tried to authenticate as.