From 6e72849a04364b99b3c137074a5c17f02ca7d151 Mon Sep 17 00:00:00 2001 From: Chinmay Purav Date: Thu, 13 Oct 2022 01:03:31 +0530 Subject: [PATCH] wip --- source/docs/v3/configuration.blade.md | 2 +- source/docs/v3/integrations/sail.blade.md | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/source/docs/v3/configuration.blade.md b/source/docs/v3/configuration.blade.md index dabb4ce..3f3fe4d 100644 --- a/source/docs/v3/configuration.blade.md +++ b/source/docs/v3/configuration.blade.md @@ -61,7 +61,7 @@ This config array lets you enable, disable or add your own [tenancy bootstrapper ### Database {#database} ->If you're using Laravel Sail, please refer the [Laravel Sail integration guide]({{ $page->link('integrations/sail') }}): +*If you're using Laravel Sail, please refer the [Laravel Sail integration guide]({{ $page->link('integrations/sail') }}).* This section is relevant to the multi-database tenancy, specifically, to the `DatabaseTenancyBootstrapper` and logic that manages tenant databases. diff --git a/source/docs/v3/integrations/sail.blade.md b/source/docs/v3/integrations/sail.blade.md index e9ceb7f..6bc02e9 100644 --- a/source/docs/v3/integrations/sail.blade.md +++ b/source/docs/v3/integrations/sail.blade.md @@ -8,9 +8,10 @@ section: content ## Creating tenants -Before creating any tenants you have to ensure that the `sail` user has the necessary permissions. +By default sail has the `ALL` privilege on the default database (here it is the central database). +In order to create, read, update and delete opreations related to the database, we will assign `ALL` privilege on all databases via the wildcard `*`; -To do so either login to the mysql shell or via any client using root user credentials and run the following queries: +To do so either login to the mysql shell or via any client using root user credentials and run the following statements ```bash GRANT ALL PRIVILEGES on *.* to 'sail'@'%'; @@ -30,4 +31,4 @@ GRANT GRANT OPTION on central_database.* to 'sail'@'%'; FLUSH PRIVILEGES; ``` ->For more info see [Specifying Database Credentials]({{ $page->link('customizing-databases#specifying-database-credentials') }}) +*For more info see [Specifying Database Credentials]({{ $page->link('customizing-databases#specifying-database-credentials') }})*