Granting privileges

Grant privileges to the newly created user:

GRANT ALL PRIVILEGES ON DATABASE "letsPoll" to letsPollUser;

This user can be used for database access, thereby eliminating the need to distribute and manage the master username and password that are created when creating the database.

Get Hands-On Serverless Applications with Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.