Update source/docs/v3/integrations/sail.blade.md

Co-authored-by: lukinovec <lukinovec@gmail.com>
This commit is contained in:
Samuel Štancl 2022-10-27 12:44:37 +02:00 committed by GitHub
parent 6cf66961a8
commit 352e6b8b12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,10 +6,7 @@ section: content
# Laravel Sail {#sail}
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 operations 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 statements
Sail can only perform the create, read, update and delete operations in the central database by default. To give Sail permission to also perform these operations in tenant databases, 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 `password`) and grant the `sail` user access to all databases by running the following statements:
```bash
GRANT ALL PRIVILEGES on *.* to 'sail'@'%';