Skip to content

Commit 8459b11

Browse files
authored
Allow database users to create/alter/drop routines (pterodactyl#3389)
Database users may wish to create/alter/drop stored procedures on their databases in order to use extra MySQL functionality.
1 parent b3a1825 commit 8459b11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Repositories/Eloquent/DatabaseRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public function createUser(string $username, string $remote, string $password, $
107107
public function assignUserToDatabase(string $database, string $username, string $remote): bool
108108
{
109109
return $this->run(sprintf(
110-
'GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, INDEX, LOCK TABLES, EXECUTE ON `%s`.* TO `%s`@`%s`',
110+
'GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, INDEX, LOCK TABLES, CREATE ROUTINE, ALTER ROUTINE, EXECUTE ON `%s`.* TO `%s`@`%s`',
111111
$database,
112112
$username,
113113
$remote

0 commit comments

Comments
 (0)