Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to show all users in mysql?

Status
Not open for further replies.

darkarchon

Technical User
May 23, 2003
6
US

so how do we list all the users in mysql? the only one i know is "SHOW GRANTS FOR BOB" and it shows the grants for bob.

how the heck do we list/show all the users?

please help!
 
mysql>use mysql

database changed.

mysql> select user, host from user;


This will give you a list of users and related host.


Bye

Qatqat

I have been happy throughout my life in thinking that samba was I kind of dance; now I live with Linux and all I do is working.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top