see all the users in mysql code example
Example 1: how to check username in mysql command line
SELECT User, Host FROM mysql.user;
Example 2: show all users in mysql
mysql> select * from mysql.user;
SELECT User, Host FROM mysql.user;
mysql> select * from mysql.user;