Closed yongbingwang closed 2 weeks ago
We have marked this issue as stale because it has been inactive for 6 months. If this issue is still relevant, removing the stale label or adding a comment will keep it active. Otherwise, we'll close it in 10 days to keep the issue queue tidy. Thank you for your contribution to StarRocks!
Use Non-root user grant the
Root
role to other user, error occurs.Steps to reproduce the behavior (Required)
root
, create userwybing_user_admin
, grantuser_admin
towybing_user_admin
.Copyright (c) 2000, 2023, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create user wybing_user_admin; Query OK, 0 rows affected (0.01 sec)
mysql> grant user_admin to wybing_user_admin; Query OK, 0 rows affected (0.00 sec)
mysql> set default role user_admin to wybing_user_admin; Query OK, 0 rows affected (0.00 sec)
wybing_user_admin
, create roleTest
, grant roleTest
to usertest
.Copyright (c) 2000, 2023, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> create role Test; Query OK, 0 rows affected (0.01 sec)
mysql> grant Test to test; Query OK, 0 rows affected (0.01 sec)
Expected behavior (Required)
Real behavior (Required)
StarRocks version (Required)
select current_version()