show user code example
Example 1: see all users mysql
mysql> select host, user, password from mysql.user;
Example 2: how to see our already added users in linux
$ lslogins -u
UID USER PROC PWD-LOCK PWD-DENY LAST-LOGIN GECOS
0 root 144 root
1000 tecmint 70 10:39:07 TecMint,,,
1001 aaronkilik 0
1002 john 0 John Doo
Example 3: show all users in mysql
mysql> select * from mysql.user;
Example 4: SELECT User,Host FROM mysql.user;
SELECT User,Host FROM mysql.user;
DROP USER 'testuser'@'localhost';