I'm using the MySQL command line utility and can navigate through a database. Now I need to see a list of user accounts. How can I do this?
I'm using MySQL version 5.4.1
.
I'm using the MySQL command line utility and can navigate through a database. Now I need to see a list of user accounts. How can I do this?
I'm using MySQL version 5.4.1
.
Peter and Jesse are correct but just make sure you first select the mysql DB.
use mysql;
select User from mysql.user;
that should do your trick
MySQL stores the user information in its own database. The name of the database is
MySQL
. Inside that database, the user information is in a table, a dataset, nameduser
. If you want to see what users are set up in the MySQL user table, run the following command: