[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");
|
include_once("head.php");
|
||||||
|
|
||||||
$fields = array (
|
$fields = array (
|
||||||
"id" => array ("post", "string", ""),
|
"id" => array ("request", "string", ""),
|
||||||
"filename" => array ("post", "string", ""),
|
"filename" => array ("post", "string", ""),
|
||||||
);
|
);
|
||||||
getFields($fields);
|
getFields($fields);
|
||||||
|
|
|
@ -469,7 +469,7 @@ class m_mysql {
|
||||||
return false;
|
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) {
|
if ($pass) {
|
||||||
$grant .= " identified by " . $db->quote($pass) . ";";
|
$grant .= " identified by " . $db->quote($pass) . ";";
|
||||||
|
|
Loading…
Reference in New Issue