Check out example codes for "mysql show users". It will help you in understanding the concepts better.

Code Example 1

select * from mysql.user;
#or for less data
select user, host from mysql.user;

Code Example 2

mysql> select host, user, password from mysql.user;

Code Example 3

SELECT User,Host FROM mysql.user;
DROP USER 'testuser'@'localhost';

Code Example 4

mysql> select * from mysql.user;

Learn ReactJs, React Native from akashmittal.com