If your are connected as root on your MySQL database, you can list all the system and object privileges for a given user :

mysql> show grants for user ‘fool’@'localhost’;

or if you are connected as the user fool :

mysql> show grants;

mysql> show grants for current_user;

mysql> show grants for current_user();

current_user function is available if your MySQL version is equal or higher that 5.0

About these ads