Index: setup/6_installation.inc.php =================================================================== --- setup/6_installation.inc.php (revision 2463) +++ setup/6_installation.inc.php (working copy) @@ -260,7 +260,22 @@ if($l_ret === false) $l_nErrors++; ___add_status($l_status, "Adding system database privileges to " . $g_config["config.db.username"]["content"], $l_ret, mysql_error($l_dbLink)); } + + /* Set rights for system database (localhost) */ + if($l_nErrors == 0) { + $l_ret = mysql_query( + "GRANT " . $g_settings["mysqlPrivileges"] . " " . + "ON " . $g_config["config.db.name"]["content"] . ".* " . + "TO '" . $g_config["config.db.username"]["content"] . "'@'localhost' " . + "IDENTIFIED BY '" . $g_config["config.db.password"]["content"] . "' " . + "WITH GRANT OPTION;", + $l_dbLink + ); + if($l_ret === false) $l_nErrors++; + ___add_status($l_status, "Adding system database privileges (localhost) to " . $g_config["config.db.username"]["content"], $l_ret, mysql_error($l_dbLink)); + } + /* Set rights for mandator database */ if($l_nErrors == 0) { $l_ret = mysql_query( @@ -275,7 +290,22 @@ if($l_ret === false) $l_nErrors++; ___add_status($l_status, "Adding mandator database privileges to " . $g_config["config.db.username"]["content"], $l_ret, mysql_error($l_dbLink)); } + + /* Set rights for mandator database (localhost) */ + if($l_nErrors == 0) { + $l_ret = mysql_query( + "GRANT " . $g_settings["mysqlPrivileges"] . " " . + "ON " . $g_config["config.mandant.name"]["content"] . ".* " . + "TO '" . $g_config["config.db.username"]["content"] . "'@'localhost' " . + "IDENTIFIED BY '" . $g_config["config.db.password"]["content"] . "' " . + "WITH GRANT OPTION;", + $l_dbLink + ); + if($l_ret === false) $l_nErrors++; + ___add_status($l_status, "Adding mandator database privileges (localhost) to " . $g_config["config.db.username"]["content"], $l_ret, mysql_error($l_dbLink)); + } + /* Add mandator entries */ if($l_nErrors == 0) { mysql_select_db($g_config["config.db.name"]["content"], $l_dbLink);