1select * from mysql.user;
2#or for less data
3select user, host from mysql.user;
1//To show all data use following query
2select * from mysql.user;
3// To show user and host use following query
4select User,Host from mysql.user;
1#display all user data
2select * from mysql.user;
3#display username and host
4select user, host from mysql.user;
1SELECT * FROM mysql.user;
2
3SELECT * FROM information_schema.user_privileges;
4SELECT CONCAT('SHOW GRANTS FOR ''',user,'''@''',host,''';') FROM mysql.user;
5SHOW GRANTS FOR 'my_user'@'localhost';