Skip to content

Commit

Permalink
Update ConfigureHelpdesk.php
Browse files Browse the repository at this point in the history
In ConfigureHelpdesk.php line 238:

  [PDOException (2002)]
  SQLSTATE[HY000] [2002] Connection refused

Resolve above error
  • Loading branch information
sagarpandav authored Jun 15, 2020
1 parent ab34321 commit 340cdaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/Wizard/ConfigureHelpdesk.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
// Check 3: Check if super admin account exists
$output->writeln(" [-] Checking if an active super admin account exists");

$database = new \PDO("mysql:host=$db_host;dbname=$db_name", $db_user, $db_password);
$database = new \PDO("mysql:host=$db_host:$db_port;dbname=$db_name", $db_user, $db_password);

$supportRoleQuery = $database->query("SELECT * FROM uv_support_role WHERE code = 'ROLE_SUPER_ADMIN'");
$supportRole = $supportRoleQuery->fetch(\PDO::FETCH_ASSOC);
Expand Down

0 comments on commit 340cdaa

Please sign in to comment.