Skip to content

Commit 0b8ef13

Browse files
committed
Added missing SELECT permission to table monitor_data on master server in master / slave setups.
1 parent c7bc69e commit 0b8ef13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/lib/installer_base.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ public function grant_master_database_rights()
324324
$this->error('Unable to create database user in master database: '.$conf['mysql']['master_ispconfig_user'].' Error: '.$this->dbmaster->errorMessage);
325325
}
326326

327-
$query = "GRANT INSERT , DELETE ON ".$conf['mysql']['master_database'].".`monitor_data` "
327+
$query = "GRANT SELECT, INSERT , DELETE ON ".$conf['mysql']['master_database'].".`monitor_data` "
328328
."TO '".$conf['mysql']['master_ispconfig_user']."'@'".$src_host."' "
329329
."IDENTIFIED BY '".$conf['mysql']['master_ispconfig_password']."';";
330330
if(!$this->dbmaster->query($query)) {

0 commit comments

Comments
 (0)