Skip to content

Commit

Permalink
Merge pull request #40 from Entropic-Synergies/2.5
Browse files Browse the repository at this point in the history
Usage of configurated mysql port with mysqldump
  • Loading branch information
robocoder committed Aug 19, 2014
2 parents 275be96 + a97f246 commit c612ffa
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ public function create($database, $file, array $params)
$command .= sprintf(" -p%s", escapeshellarg($params['password']));
}

if (isset($params['port'])) {
$command .= sprintf(" -P%s", escapeshellarg($params['port']));
}

$this->runCommand($command);
}

Expand All @@ -95,6 +99,10 @@ public function restore($database, $file, array $params)
$command .= sprintf(" -p%s", escapeshellarg($params['password']));
}

if (isset($params['port'])) {
$command .= sprintf(" -P%s", escapeshellarg($params['port']));
}

$this->runCommand($command);
}
}

0 comments on commit c612ffa

Please sign in to comment.