How To Get The Current User in MySQL

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()

Advertisements

0 Responses to “How To Get The Current User in MySQL”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s




TwitterCounter for @anthonyrstevens
Add to Technorati Favorites

RSS Feed

View Anthony Stevens's profile on LinkedIn
Advertisements

%d bloggers like this: