Skip to content

Commit

Permalink
Merge pull request #5 from london89/patch-3
Browse files Browse the repository at this point in the history
Fix restore db
  • Loading branch information
Anisan committed Mar 27, 2021
2 parents 29825b4 + 1bd921b commit df9f7e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/backup/backup.class.php
Expand Up @@ -568,7 +568,7 @@ function backupdatabase($filename)
function restoredatabase($filename)
{
$mysql_path = (substr(php_uname(), 0, 7) == "Windows") ? SERVER_ROOT . "/server/mysql/bin/mysql" : 'mysql';
$mysqlParam = " -H " . DB_HOST;
$mysqlParam = " -h " . DB_HOST;
$mysqlParam .= " -u " . DB_USER;
if (DB_PASSWORD != '') $mysqlParam .= " -p" . DB_PASSWORD;
$mysqlParam .= " " . DB_NAME . " <" . $filename;
Expand Down

0 comments on commit df9f7e4

Please sign in to comment.