Skip to content

Commit 4c6e5e0

Browse files
committed
Grant dbmaster privileges on server_php, #6466
1 parent faa6950 commit 4c6e5e0

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
@@ -812,6 +812,14 @@ public function grant_master_database_rights($verbose = false) {
812812
$this->warning('Unable to set rights of user in master database: '.$value['db']."\n Query: ".$query."\n Error: ".$this->dbmaster->errorMessage);
813813
}
814814

815+
$query = "GRANT SELECT, INSERT ON ?? TO ?@?";
816+
if ($verbose){
817+
echo $query ."\n";
818+
}
819+
if(!$this->dbmaster->query($query, $value['db'] . '.server_php', $value['user'], $host)) {
820+
$this->warning('Unable to set rights of user in master database: '.$value['db']."\n Query: ".$query."\n Error: ".$this->dbmaster->errorMessage);
821+
}
822+
815823
}
816824

817825
}

0 commit comments

Comments
 (0)