Skip to content

Commit

Permalink
Fix Unknown storage engine InnoDB
Browse files Browse the repository at this point in the history
Signed-off-by: Liviu-Mihail Concioiu <[email protected]>
  • Loading branch information
liviuconcioiu committed Sep 4, 2024
1 parent 29018a5 commit 43f114a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
3 changes: 1 addition & 2 deletions libraries/classes/Database/Routines.php
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,7 @@ public function flushPrivileges($flushPrivileges)
{
if ($flushPrivileges) {
// Flush the Privileges
$flushPrivQuery = 'FLUSH PRIVILEGES;';
$this->dbi->query($flushPrivQuery);
$this->dbi->tryQuery('FLUSH PRIVILEGES;');

$message = Message::success(
__(
Expand Down
12 changes: 4 additions & 8 deletions libraries/classes/Operations.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,7 @@ public function adjustPrivilegesMoveDb($oldDb, $newname): void
$this->dbi->query($query_proc_specific);

// Finally FLUSH the new privileges
$flush_query = 'FLUSH PRIVILEGES;';
$this->dbi->query($flush_query);
$this->dbi->tryQuery('FLUSH PRIVILEGES;');
}

/**
Expand Down Expand Up @@ -442,8 +441,7 @@ public function adjustPrivilegesCopyDb($oldDb, $newname): void
}

// Finally FLUSH the new privileges
$flush_query = 'FLUSH PRIVILEGES;';
$this->dbi->query($flush_query);
$this->dbi->tryQuery('FLUSH PRIVILEGES;');
}

/**
Expand Down Expand Up @@ -816,8 +814,7 @@ public function adjustPrivilegesRenameOrMoveTable($oldDb, $oldTable, $newDb, $ne
$this->dbi->query($query_col_specific);

// Finally FLUSH the new privileges
$flush_query = 'FLUSH PRIVILEGES;';
$this->dbi->query($flush_query);
$this->dbi->tryQuery('FLUSH PRIVILEGES;');
}

/**
Expand Down Expand Up @@ -871,8 +868,7 @@ public function adjustPrivilegesCopyTable($oldDb, $oldTable, $newDb, $newTable):
}

// Finally FLUSH the new privileges
$flush_query = 'FLUSH PRIVILEGES;';
$this->dbi->query($flush_query);
$this->dbi->tryQuery('FLUSH PRIVILEGES;');
}

/**
Expand Down
3 changes: 1 addition & 2 deletions libraries/classes/Server/Privileges.php
Original file line number Diff line number Diff line change
Expand Up @@ -2477,8 +2477,7 @@ public function updateMessageForReload(): ?Message
{
$message = null;
if (isset($_GET['flush_privileges'])) {
$sqlQuery = 'FLUSH PRIVILEGES;';
$this->dbi->query($sqlQuery);
$this->dbi->tryQuery('FLUSH PRIVILEGES;');
$message = Message::success(
__('The privileges were reloaded successfully.')
);
Expand Down

0 comments on commit 43f114a

Please sign in to comment.