File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
setup/src/Magento/Setup/Validator Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ private function checkDatabasePrivileges(\Magento\Framework\DB\Adapter\AdapterIn
166
166
return true ;
167
167
}
168
168
169
- // check table privileges
169
+ // check database privileges
170
170
$ schemaPrivilegesQuery = "SELECT PRIVILEGE_TYPE FROM SCHEMA_PRIVILEGES " .
171
171
"WHERE ' $ dbName' LIKE TABLE_SCHEMA AND REPLACE(GRANTEE, '\'', '') = current_user() " ;
172
172
$ grantInfo = $ connection ->query ($ schemaPrivilegesQuery )->fetchAll (\PDO ::FETCH_NUM );
@@ -175,7 +175,7 @@ private function checkDatabasePrivileges(\Magento\Framework\DB\Adapter\AdapterIn
175
175
}
176
176
177
177
$ errorMessage = 'Database user does not have enough privileges. Please make sure '
178
- . implode (', ' , $ requiredPrivileges ) . " privileges are granted to table ' {$ dbName }'. " ;
178
+ . implode (', ' , $ requiredPrivileges ) . " privileges are granted to database ' {$ dbName }'. " ;
179
179
throw new \Magento \Setup \Exception ($ errorMessage );
180
180
}
181
181
You can’t perform that action at this time.
0 commit comments