Commit a8273bc3 authored by Till Brehm's avatar Till Brehm
Browse files

Improved logging in mysql_clientdb_plugin.inc.php

parent 8bf47f66
Pipeline #5551 passed with stage
in 10 seconds
......@@ -162,10 +162,11 @@ class mysql_clientdb_plugin {
}
}
$app->log("PASSWORD SET FOR '".$link->escape_string($database_user)."'@'$db_host' success? " . ($success ? 'yes' : 'no'), LOGLEVEL_DEBUG);
if($success == true){
$link->query("FLUSH PRIVILEGES");
$app->log("PASSWORD SET FOR '".$link->escape_string($database_user)."'@'$db_host' success? " . ($success ? 'yes' : 'no'), LOGLEVEL_DEBUG);
}
}
// Set the grant
if(!$link->query("GRANT " . $grants . " ON `".$database_name."`.* TO '".$link->escape_string($database_user)."'@'$db_host'")) $success = false;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment