How To Get The Current User in MySQL

Software

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

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Furl
  • Ma.gnolia
  • Reddit
  • TwitThis
1 Comment

1 Comment

  1. Ryan  •  Jul 27, 2010 @3:50 pm

    Thank you, this helped me out quite a bit.

Leave a Reply

Allowed tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">