From e6fc6f397040987e12f0a22fbf0af195a32ea9e8 Mon Sep 17 00:00:00 2001 From: Nico Stapelbroek Date: Sun, 25 Nov 2018 16:44:28 +0100 Subject: [PATCH] Explicitly set the port number when not using traditional ports --- app/Console/Commands/InstallCommand.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Console/Commands/InstallCommand.php b/app/Console/Commands/InstallCommand.php index 06fd8410..1ece3958 100644 --- a/app/Console/Commands/InstallCommand.php +++ b/app/Console/Commands/InstallCommand.php @@ -155,6 +155,7 @@ class InstallCommand extends Command $config['DB_PASSWORD'] = $this->secret('What password should we connect with?', $config['DB_PASSWORD']); + $config['DB_PORT'] = $config['DB_DRIVER'] === 'mysql' ? 3306 : 5432; if ($this->confirm('Is your database listening on a non-standard port number?')) { $config['DB_PORT'] = $this->anticipate('What port number is your database using?', [3306, 5432], $config['DB_PORT']); }