MySQL - What are the scope levels a user privilege can be granted?

What are the scope levels a user privilege can be granted in MySQL?

Below are the scope levels:-

1. Global Level – This privilege applies to ALL databases present. Privileges granted at the global level stored in "mysql.user" table.

2. Database Level - This privilege applies to ALL tables present. Privileges granted at the global level stored in "mysql.db" table.

3. Table Level - This privilege applies to ALL columns present in the tables specifed. Privileges granted at the global level stored in "mysql.tables_priv" table.

4. Column Level - This privilege applies to a specific column of the specified table. Privileges granted at the global level stored in "mysql.columns_priv" table.

5. Routine Level - A privilege granted at this level applies to only the specified stored function procedure. Privileges granted at the global level stored in "mysql.procs_priv" table.
MySQL - Explain how to view and Revoke user privileges in MySQL
Explain how to view and Revoke user privileges in MySQL - Privileges assigned to users can be viewed using the SHOW GRANTS USER_NAME command......
MySQL - Explain the command line options offered by mysqld
Explain the command line options offered by mysqld - --help - Displays a short help message on how to use mysqld, --verbose --help - Displays a long help messages on how to use mysqld.....
MySQL - What is Binary Log File in MySQL?
What is Binary Log File in MySQL? - The binary log file contains information about statements that could have modified the data and how long it took to modify the data.....
Post your comment