Skip to content

Commit d430acf

Browse files
committed
LOCK TABLES not LOCK
1 parent e200277 commit d430acf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ error encountered during creation or update.
2323
return different groupings of servers. The default value is `subuser-of` which will include all of the user's servers
2424
that they are the owner of, as well as all servers they're a subuser of.
2525
* Added back ability to toggle OOM killer status on a per-server basis.
26-
* Added `LOCK` permission for generated database users.
26+
* Added `LOCK TABLES` permission for generated database users.
2727

2828
### Changed
2929
* Updated Paper egg to not download `server.properties` each time. [parkervcp/eggs#260](https://github.com/parkervcp/eggs/issues/260)

app/Repositories/Eloquent/DatabaseRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public function createUser(string $username, string $remote, string $password):
153153
public function assignUserToDatabase(string $database, string $username, string $remote): bool
154154
{
155155
return $this->run(sprintf(
156-
'GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, INDEX, LOCK, EXECUTE ON `%s`.* TO `%s`@`%s`',
156+
'GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, ALTER, INDEX, LOCK TABLES, EXECUTE ON `%s`.* TO `%s`@`%s`',
157157
$database,
158158
$username,
159159
$remote

0 commit comments

Comments
 (0)