Skip to content

Commit 724399b

Browse files
committed
fix: add --protocol=TCP option to mysql command
1 parent 131de49 commit 724399b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/Database/ImportDatabaseCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ protected function perform(InputInterface $input, OutputInterface $output)
9797

9898
$output->infoWithDelayWarning(sprintf('Importing "<comment>%s</comment>" to the "<comment>%s</comment>" database', $file, $name));
9999

100-
$command = sprintf('%s %s | mysql --host=%s --port=%s --user=%s --password=%s %s', str_ends_with($file, '.sql.gz') ? 'gunzip <' : 'cat', $file, $host, $port, $user, $password, $name);
100+
$command = sprintf('%s %s | mysql --protocol=TCP --host=%s --port=%s --user=%s --password=%s %s', str_ends_with($file, '.sql.gz') ? 'gunzip <' : 'cat', $file, $host, $port, $user, $password, $name);
101101

102102
Process::runShellCommandline($command, null, null);
103103

0 commit comments

Comments
 (0)