Skip to Content
Advanced MySQL 8
book

Advanced MySQL 8

by Eric Vanier, Birju Shah, Tejaswi Malepati
January 2019
Intermediate to advanced
286 pages
7h 41m
English
Packt Publishing
Content preview from Advanced MySQL 8

Where are privileges stored in MySQL 8.0?

The privileges are stored in the following tables of the MySQL system database:

user, db, tables_priv, columns_priv, procs_priv, and global_grants

When the MySQL server starts, it reads all the grant table content into memory and the in-memory tables become effective for access control.

The grant tables can be modified using statements that belong to the account manager. For example, the SET PASSWORD, REVOKE, RENAME USER, and GRANT commands can be used. However, when they are used, the changes that they make, will be caught by the server and this leads to the grant tables being loaded into memory instantaneously.

However, if the grant tables are modified indirectly using commands such as INSERT, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

MySQL 8 Cookbook

MySQL 8 Cookbook

Karthik Appigatla
High Performance MySQL, 3rd Edition

High Performance MySQL, 3rd Edition

Baron Schwartz, Peter Zaitsev, Vadim Tkachenko
High Performance MySQL, 2nd Edition

High Performance MySQL, 2nd Edition

Jeremy D. Zawodny, Derek J. Balling, Baron Schwartz, Peter Zaitsev, Arjen Lentz, Vadim Tkachenko

Publisher Resources

ISBN: 9781788834445Other