How to see a list of MySQL database users

For a list of MySQL users, simply do the following:

1. log in to the MySQL command line.

2. Run the following command:

SELECT USER from MySQL.user;