Quantcast
Channel: SQL Archives - SQL Authority with Pinal Dave
Viewing all articles
Browse latest Browse all 594

MySQL – Different Methods to Know Current User

$
0
0

There are different methods to know the name of the current user in MySQL. There can be many reasons we want to know who is the current user. Here is list of the of the few of the such reasons.

Customized code which we want to run based on the reason.
Checking the permissions based on the user.
Inserting the name of the user in the audit table.
Displaying special message based on the login user.
Executing some special logic/code based on the logged in user.

The post MySQL – Different Methods to Know Current User appeared first on Journey to SQL Authority with Pinal Dave.


Viewing all articles
Browse latest Browse all 594

Trending Articles