Skip to content

Commit

Permalink
Fix timeout when restore db
Browse files Browse the repository at this point in the history
  • Loading branch information
hmillet committed Mar 3, 2016
1 parent f08b6d3 commit 4f507bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Command/DatabaseRestoreCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ protected function mysqlRestore(OutputInterface $output)
$output->writeln(sprintf('<info>Sql file decompressed into %s</info>', $sqlFile));

$mysql = new Process(sprintf('mysql -e "source %s" -u %s --password=%s -h %s %s ',$sqlFile , $dbUser, $dbPwd, $dbHost, $dbName));
$mysql->setTimeout(3600);
$mysql->run();
if (!$mysql->isSuccessful()) {
$output->writeln(sprintf('<error>Data load failed : %s</error>', $sqlFile));
Expand Down

0 comments on commit 4f507bc

Please sign in to comment.