tenancy-docs/source/docs/v3/integrations/sail.blade.md
Samuel Štancl 352e6b8b12
Update source/docs/v3/integrations/sail.blade.md
Co-authored-by: lukinovec <lukinovec@gmail.com>
2022-10-27 12:44:37 +02:00

14 lines
607 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Laravel Sail integration
extends: _layouts.documentation
section: content
---
# Laravel Sail {#sail}
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'@'%';
FLUSH PRIVILEGES;
```