Skip to content

Commit f932528

Browse files
committed
installer: fix powerdns GRANT query
1 parent c40198b commit f932528

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install/lib/installer_base.lib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2036,8 +2036,8 @@ public function configure_powerdns() {
20362036
}
20372037

20382038
//* Create the ISPConfig database user in the local database
2039-
$query = "GRANT ALL ON ?? TO ?@'localhost'";
2040-
if(!$this->db->query($query, $conf['powerdns']['database'] . '.*', $conf['mysql']['ispconfig_user'])) {
2039+
$query = "GRANT ALL ON ??.* TO ?@?";
2040+
if(!$this->db->query($query, $conf['powerdns']['database'], $conf['mysql']['ispconfig_user'], 'localhost')) {
20412041
$this->error('Unable to create user for powerdns database Error: '.$this->db->errorMessage);
20422042
}
20432043

0 commit comments

Comments
 (0)