Allow database users to create/alter/drop routines (#3389)
Database users may wish to create/alter/drop stored procedures on their databases in order to use extra MySQL functionality.
This commit is contained in:
parent
b3a1825b56
commit
8459b11019
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ class DatabaseRepository extends EloquentRepository implements DatabaseRepositor
|
||||||
public function assignUserToDatabase(string $database, string $username, string $remote): bool
|
public function assignUserToDatabase(string $database, string $username, string $remote): bool
|
||||||
{
|
{
|
||||||
return $this->run(sprintf(
|
return $this->run(sprintf(
|
||||||
'GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, INDEX, LOCK TABLES, EXECUTE ON `%s`.* TO `%s`@`%s`',
|
'GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, INDEX, LOCK TABLES, CREATE ROUTINE, ALTER ROUTINE, EXECUTE ON `%s`.* TO `%s`@`%s`',
|
||||||
$database,
|
$database,
|
||||||
$username,
|
$username,
|
||||||
$remote
|
$remote
|
||||||
|
|
Loading…
Reference in a new issue