From 577e8b66f4ef417ebffe957e5cc1b5b668d95124 Mon Sep 17 00:00:00 2001 From: kostamilorava <45169743+kostamilorava@users.noreply.github.com> Date: Wed, 27 Sep 2023 05:57:21 +0400 Subject: [PATCH] Add grant option (#261) Add grant option to sail user in order to allow user ownership control for different databases --- source/docs/v3/integrations/sail.blade.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/docs/v3/integrations/sail.blade.md b/source/docs/v3/integrations/sail.blade.md index e779e5e..c3a44ff 100644 --- a/source/docs/v3/integrations/sail.blade.md +++ b/source/docs/v3/integrations/sail.blade.md @@ -13,7 +13,7 @@ section: content The default Sail user can only perform the create, read, update and delete operations in the central database. To allow the user to perform these operations in the tenant databases too, log in to Sail's MySQL shell as the root user (`docker-compose exec mysql bash`, then `mysql -u root -p` – by default, the password is determined by the `DB_PASSWORD` variable in your `.env`) and grant the Sail user access to all databases by running the following statements: ```sh -GRANT ALL PRIVILEGES on *.* to 'sail'@'%'; +GRANT ALL PRIVILEGES ON *.* TO 'sail'@'%' WITH GRANT OPTION; FLUSH PRIVILEGES; ```