To determine who you are currently logged in as in a MySQL command prompt, type the following:
mysql> select user()
or
mysql> select current_user()
Wouldn’t you rather be writing code?
To determine who you are currently logged in as in a MySQL command prompt, type the following:
mysql> select user()
or
mysql> select current_user()
0 Responses to “How To Get The Current User in MySQL”