Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to determine current user

Status
Not open for further replies.

gharabed

Programmer
Sep 7, 2001
251
US
Is there a query or "show" command I can execute to determine the user I am logged in as when logged in through mysql?
 
Code:
SELECT SESSION_USER();
SELECT SYSTEM_USER();
SELECT USER();
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top