mirror of
https://github.com/stancl/tenancy-docs.git
synced 2025-12-12 02:04:03 +00:00
custom credentials doc elaboration
This commit is contained in:
parent
f72cb23794
commit
a26a695bd1
1 changed files with 6 additions and 2 deletions
|
|
@ -17,11 +17,15 @@ GRANT ALL PRIVILEGES on *.* to 'sail'@'%';
|
|||
FLUSH PRIVILEGES;
|
||||
```
|
||||
|
||||
If you are using [Database Customization]({{ $page->link('customizing-databases') }}), then you will have add the following GRANT as well:
|
||||
### Specifying Database Credentials {#specifying-database-credentials}
|
||||
|
||||
If you want to use custom users (one user for each database), you will need `GRANT OPTION` grant on your central database user (`sail` in this case), otherwise you cannot grant permissions to the newly created user.
|
||||
|
||||
Just run the following SQL from root user:
|
||||
|
||||
```bash
|
||||
GRANT GRANT OPTION on central_database.* to 'sail'@'%';
|
||||
FLUSH PRIVILEGES;
|
||||
```
|
||||
|
||||
This grant allows the central database to grant permissions to other users.
|
||||
>For more info see [Specifying Database Credentials]({{ $page->link('customizing-databases#specifying-database-credentials') }})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue