A free open source IT asset/license management system
Add port number option to the restore command
Brady Wetheringtonf8c7eee17b5c
diff --git a/app/Console/Commands/RestoreFromBackup.php b/app/Console/Commands/RestoreFromBackup.phpindex dfef7a97f6..f9d96b7f05 100644--- a/app/Console/Commands/RestoreFromBackup.php+++ b/app/Console/Commands/RestoreFromBackup.php@@ -456,7 +456,11 @@ class RestoreFromBackup extends Commandif (! file_exists($mysql_binary)) {return $this->error("mysql tool at: '$mysql_binary' does not exist, cannot restore. Please edit DB_DUMP_PATH in your .env to point to a directory that contains the mysqldump and mysql binary");}- $proc_results = proc_open("$mysql_binary -h ".escapeshellarg(config('database.connections.mysql.host')).' -u '.escapeshellarg(config('database.connections.mysql.username')).' '.escapeshellarg(config('database.connections.mysql.database')), // yanked -p since we pass via ENV+ $proc_results = proc_open("$mysql_binary -h " .+ escapeshellarg(config('database.connections.mysql.host')) .+ ' -u ' . escapeshellarg(config('database.connections.mysql.username')) . ' ' .+ ' -P ' . escapeshellarg(config('database.connections.mysql.port')) . ' ' .+ escapeshellarg(config('database.connections.mysql.database')), // yanked -p since we pass via ENV[0 => ['pipe', 'r'], 1 => ['pipe', 'w'], 2 => ['pipe', 'w']],$pipes,null,