Skip to content

Commit 2dc842e

Browse files
author
Florian Schaal
committed
set grants for slave to mail_backup
1 parent 58023ff commit 2dc842e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

install/lib/installer_base.lib.php

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

501+
$query = "GRANT SELECT, INSERT, DELETE ON ".$value['db'].".`mail_backup` TO '".$value['user']."'@'".$host."' ";
502+
if ($verbose){
503+
echo $query ."\n";
504+
}
505+
if(!$this->dbmaster->query($query)) {
506+
$this->warning('Unable to set rights of user in master database: '.$value['db']."\n Query: ".$query."\n Error: ".$this->dbmaster->errorMessage);
507+
}
501508
}
502509

503510
/*

0 commit comments

Comments
 (0)