Add grant option (#261)

Add grant option to sail user in order to allow user ownership control for different databases
This commit is contained in:
kostamilorava 2023-09-27 05:57:21 +04:00 committed by GitHub
parent 3b5cd8fec9
commit 577e8b66f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
```