Users/Grants
What are Users and Grants?
How to use Users and Grants
Difference between MySQL Users & Grants and Dolt Users & Grants
Interaction with Dolt Version Control
Example
Create a user and grant permissions
$ dolt sql
# Welcome to the DoltSQL shell.
# Statements must be terminated with ';'.
# "exit" or "quit" (or Ctrl-D) to exit.
dolt> CREATE USER testuser@localhost IDENTIFIED BY 'password123';
dolt> GRANT SELECT ON db_name.example TO testuser@localhost;
dolt> CREATE ROLE testrole;
dolt> GRANT SELECT, INSERT, UPDATE, DELETE on *.* TO testrole;
dolt> exit;Access data as a user
Last updated
Was this helpful?