From a26a695bd17b5e3238ac4a524a5ff7dff8fd8c91 Mon Sep 17 00:00:00 2001 From: Chinmay Purav Date: Sat, 1 Oct 2022 11:57:49 +0530 Subject: [PATCH] custom credentials doc elaboration --- source/docs/v3/integrations/sail.blade.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/docs/v3/integrations/sail.blade.md b/source/docs/v3/integrations/sail.blade.md index 29899de..aaa3622 100644 --- a/source/docs/v3/integrations/sail.blade.md +++ b/source/docs/v3/integrations/sail.blade.md @@ -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') }})