April 2026
Beginner
493 pages
23h 2m
English
So far, all code samples in this book have been executed by a single user with infinite privileges. That’s fine for a playground or an offline personal database, but real-life production databases are more complex than that. There are typically multiple stakeholders who should or shouldn’t perform certain actions, based on their functions.
Ideally, each stakeholder should connect to the database with their own user account, and their user account should be set up in such a way that their necessary actions are enabled while others are disabled.
Before learning how to set up privileges, we need to learn about two core elements in databases: users and roles. That’s the exact scope of this section.
Initially, we ...
Read now
Unlock full access