Skip to content
Snippets Groups Projects
Unverified Commit 231bae1c authored by daviszhen's avatar daviszhen Committed by GitHub
Browse files

add create account/user/role (#4741)

1.  Enable multi tenant in default

- add create account statement.
- add create user statement.
- add create role statement.
- with two internal users -- root and dump (both password 111) in sys tenant.
- login format: the '-u' option of mysql client has been extended to "tenant:user:role" or "tenant:user"(public role) or "user"(sys tenant, public role)

2. Already known restrictions in this initial version:

- no privilege check
- no drop/alter statement
- no view
- only tenant isolation
- user can see the whole catalog of the tenant that it is belonged to.
- remove the .store directory when mo boots with multi-tenant verison at first time. Just only once.

3. Remove db-server

Approved by: @reusee, @iamlinjunhong, @aressu1985
parent 4eb202d7
No related branches found
No related tags found
Showing
with 5486 additions and 3722 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment