Skip to content

Commit 48934fb

Browse files
author
Marius Burkard
committed
- add grant for web_database
1 parent ea37095 commit 48934fb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

install/lib/installer_base.lib.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,6 +666,14 @@ public function grant_master_database_rights($verbose = false) {
666666
$this->warning('Unable to set rights of user in master database: '.$value['db']."\n Query: ".$query."\n Error: ".$this->dbmaster->errorMessage);
667667
}
668668

669+
$query = "GRANT SELECT ON ?? TO ?@?";
670+
if ($verbose){
671+
echo $query ."\n";
672+
}
673+
if(!$this->dbmaster->query($query, $value['db'] . '.web_database', $value['user'], $host)) {
674+
$this->warning('Unable to set rights of user in master database: '.$value['db']."\n Query: ".$query."\n Error: ".$this->dbmaster->errorMessage);
675+
}
676+
669677
$query = "GRANT SELECT ON ?? TO ?@?";
670678
if ($verbose){
671679
echo $query ."\n";

0 commit comments

Comments
 (0)