Mysql – How to show user’s privileges in MySQL

MySQLpermissionsusers

I know that I can set user's privileges in the following simple way:

grant all on [database name].[table name] to [user name]@[host name];

But how can I see existing privileges?

I need to see data similar to those which are used in grant. In other words I want to know that a given user has a given access to a given table of a given database from a given host.

How can I get it?

Best Answer

The command SHOW GRANTS [FOR user] is what you're looking for. See here for more detail.