Skip to content

Commit

Permalink
ENGCOM-4320: Change comment to "database" #21330
Browse files Browse the repository at this point in the history
  • Loading branch information
sidolov authored Feb 28, 2019
2 parents f700b18 + 7776df5 commit 26de5e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup/src/Magento/Setup/Validator/DbValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ private function checkDatabasePrivileges(\Magento\Framework\DB\Adapter\AdapterIn
return true;
}

// check table privileges
// check database privileges
$schemaPrivilegesQuery = "SELECT PRIVILEGE_TYPE FROM SCHEMA_PRIVILEGES " .
"WHERE '$dbName' LIKE TABLE_SCHEMA AND REPLACE(GRANTEE, '\'', '') = current_user()";
$grantInfo = $connection->query($schemaPrivilegesQuery)->fetchAll(\PDO::FETCH_NUM);
Expand All @@ -175,7 +175,7 @@ private function checkDatabasePrivileges(\Magento\Framework\DB\Adapter\AdapterIn
}

$errorMessage = 'Database user does not have enough privileges. Please make sure '
. implode(', ', $requiredPrivileges) . " privileges are granted to table '{$dbName}'.";
. implode(', ', $requiredPrivileges) . " privileges are granted to database '{$dbName}'.";
throw new \Magento\Setup\Exception($errorMessage);
}

Expand Down

0 comments on commit 26de5e6

Please sign in to comment.