Skip to content

Commit

Permalink
DB command: Cope with missing optional arguments for mysql (#39582)
Browse files Browse the repository at this point in the history
  • Loading branch information
vroomfondle authored Nov 12, 2021
1 parent 2049de7 commit f1a6b82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Console/DbCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ protected function getMysqlArguments(array $connection)
'--user='.$connection['username'],
], $this->getOptionalArguments([
'password' => '--password='.$connection['password'],
'unix_socket' => '--socket='.$connection['unix_socket'],
'charset' => '--default-character-set='.$connection['charset'],
'unix_socket' => '--socket='.($connection['unix_socket'] ?? ''),
'charset' => '--default-character-set='.($connection['charset'] ?? ''),
], $connection), [$connection['database']]);
}

Expand Down

0 comments on commit f1a6b82

Please sign in to comment.