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

Code Example 1

mysql> select * from mysql.user;

Code Example 2

//To show all data use following query
select * from mysql.user;
// To show user and host use following query
select User,Host from mysql.user;

Code Example 3

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

Learn ReactJs, React Native from