How to view current user in Mysql?

by Ramya 2008-06-02 17:46:24

If you want to see in which username you are accessing the database then use the following,

> SELECT CURRENT_USER();

For example if you are accessing through root, it will display the current user as,

> root@localhost

Tagged in:

757
like
0
dislike
0
mail
flag

You must LOGIN to add comments