Skip to content

Commit f431939

Browse files
author
Marius Burkard
committed
Merge branch '6097-error-when-calling-update-php-and-powerdns-is-configured' into 'develop'
Resolve "Error when calling update.php and PowerDNS is configured" Closes #6097 See merge request ispconfig/ispconfig3!1448
2 parents 126aa5e + f932528 commit f431939

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
@@ -2042,8 +2042,8 @@ public function configure_powerdns() {
20422042
}
20432043

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

0 commit comments

Comments
 (0)