FG
💻 Software

how do I see which user I am logged in as in MySQL?

Fresh7 days ago
Mar 15, 202667165 views
Confidence Score0%
0%

Problem

I have multiple text console session open and log in as different users into different consoles. I forget after while which consoles belong to which user, it would be nice to not have to quit and log back in. How do I see which user I am logged in as? Is there a way to change which user I logged in…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: how do I see which user I am logged in as in MySQL?

Low Risk

Actually, you need to use two functions USER() reports how you attempted to authenticate in MySQL CURRENT_USER() reports how you were allowed to authenticate in MySQL Sometimes, they are different

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment