Grant all necessary permissions to generated SQL users (#3800)
* grant all necessary permissions to users * fix CREATE TEMPORARY TABLES Co-authored-by: A248 <theanandbeh@gmail.com> Co-authored-by: A248 <theanandbeh@gmail.com> Co-authored-by: Matthew Penner <me@matthewp.io>
This commit is contained in:
parent
a9ebf5b883
commit
281256e17c
|
@ -107,7 +107,7 @@ class DatabaseRepository extends EloquentRepository implements DatabaseRepositor
|
|||
public function assignUserToDatabase(string $database, string $username, string $remote): bool
|
||||
{
|
||||
return $this->run(sprintf(
|
||||
'GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, REFERENCES, INDEX, LOCK TABLES, CREATE ROUTINE, ALTER ROUTINE, EXECUTE ON `%s`.* TO `%s`@`%s`',
|
||||
'GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, REFERENCES, INDEX, LOCK TABLES, CREATE ROUTINE, ALTER ROUTINE, EXECUTE, CREATE TEMPORARY TABLES, CREATE VIEW, SHOW VIEW, EVENT, TRIGGER ON `%s`.* TO `%s`@`%s`',
|
||||
$database,
|
||||
$username,
|
||||
$remote
|
||||
|
|
Loading…
Reference in New Issue