[fix] fixing db issue when creating a DB + post/request for SQLRESTORE
This commit is contained in:
parent
9aa3f43160
commit
3ffa78aa5f
|
@ -31,7 +31,7 @@ require_once("../class/config.php");
|
|||
include_once("head.php");
|
||||
|
||||
$fields = array (
|
||||
"id" => array ("post", "string", ""),
|
||||
"id" => array ("request", "string", ""),
|
||||
"filename" => array ("post", "string", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
|
|
@ -469,7 +469,7 @@ class m_mysql {
|
|||
return false;
|
||||
}
|
||||
|
||||
$grant = "grant " . $rights . " on " . $base . "." . $table . " to " . $db->quote($user) . "@" . $db->quote($this->dbus->Client);
|
||||
$grant = "grant " . $rights . " on `" . $base . "`." . $table . " to " . $db->quote($user) . "@" . $db->quote($this->dbus->Client);
|
||||
|
||||
if ($pass) {
|
||||
$grant .= " identified by " . $db->quote($pass) . ";";
|
||||
|
|
Loading…
Reference in New Issue