diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-07-16 13:32:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-16 13:32:39 +0200 |
commit | f877176fed9fdac40fa51fde994640f963ec9fb3 (patch) | |
tree | 84f76ed4acbed93322a0f99fb3d638f40ab86b46 /lib | |
parent | 86a399d82b15dc7afe9f01c73b5d292f3a286522 (diff) | |
parent | 392a4dd68af1d02f6472a8c21583f78bf83fe7b4 (diff) | |
download | nextcloud-server-f877176fed9fdac40fa51fde994640f963ec9fb3.tar.gz nextcloud-server-f877176fed9fdac40fa51fde994640f963ec9fb3.zip |
Merge pull request #16180 from oliversalzburg/fix/grant-all
Use specific privileges when creating admin
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Setup/MySQL.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Setup/MySQL.php b/lib/private/Setup/MySQL.php index dd215f96cbe..eb4fedefd4b 100644 --- a/lib/private/Setup/MySQL.php +++ b/lib/private/Setup/MySQL.php @@ -79,7 +79,7 @@ class MySQL extends AbstractDatabase { try { //this query will fail if there aren't the right permissions, ignore the error - $query="GRANT ALL PRIVILEGES ON `$name` . * TO '$user'"; + $query="GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, REFERENCES, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, EVENT, TRIGGER ON `$name` . * TO '$user'"; $connection->executeUpdate($query); } catch (\Exception $ex) { $this->logger->logException($ex, [ |