Check the user_auths table : User Table « User Permission « SQL / MySQL






Check the user_auths table

      

SELECT   GRANTEE
FROM     USER_AUTHS
WHERE    PRIVILEGE = 'SELECT'
UNION
SELECT   GRANTEE
FROM     DATABASE_AUTHS
WHERE    DATABASE_NAME = 'TENNIS'
AND      PRIVILEGE = 'SELECT'
UNION
SELECT   GRANTEE
FROM     TABLE_AUTHS
WHERE    TABLE_CREATOR = 'TENNIS'
AND      PRIVILEGE = 'SELECT'
AND      TABLE_NAME = 'PLAYERS'

   
    
    
    
    
    
  








Related examples in the same category

1.Query user table
2.Deal with users who can log in from anywhere
3.Check the just created user by querying the user table
4.Verify that the user table contains the proper host and user rows.
5.How an account would be added to the user table
6.Query the user table
7.Check for user authentication for current user