stancl / tenancy-docs

stancl/tenancy docs & website
https://tenancyforlaravel.com/docs
MIT License
64 stars 633 forks source link

Add grant option to sail user #261

Closed kostamilorava closed 1 year ago

kostamilorava commented 1 year ago

When you execute GRANT ALL PRIVILEGES ON *.* TO 'sail'@'%';, it grants the 'sail' user extensive permissions, including the ability to manage databases and create users.

However, this does not enable the 'sail' user to delegate database access permissions to another user, leading to permission errors while using package as newly created user will not have access to newly created database.

For this, WITH GRANT OPTION should be added to sail user.