Skip to content

Commit

Permalink
flush privileges after updating roles_mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinFrazar authored and github-actions committed May 22, 2024
1 parent 91ed1ba commit 877784d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/pages/database-access/auto-user-provisioning/mariadb.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ automatically designates the admin user as "Admin" of those roles.
Alternatively, you can assign the admin user as the "Admin" of existing roles:
```sql
UPDATE mysql.roles_mapping SET User ='teleport-admin' WHERE Admin_option='Y' AND Role='role1';
FLUSH PRIVILEGES;
```

Replace `role1` with the name of the role that will be granted to
Expand Down Expand Up @@ -98,6 +99,7 @@ CREATE ROLE role1 WITH ADMIN 'teleport-admin';
Alternatively, you can assign the admin user as the "Admin" of existing roles:
```sql
UPDATE mysql.roles_mapping SET User ='teleport-admin' WHERE Admin_option='Y' AND Role='role1';
FLUSH PRIVILEGES;
```

Replace `role1` with the name of the role that will be granted to
Expand Down

0 comments on commit 877784d

Please sign in to comment.