Skip to content

Incorrect error for invalid credentials: Port must be configured within host parameter #40578

@Sam-Mear

Description

@Sam-Mear

Preconditions and environment

  • Magento version
    • 2.4.7-p8
  • Anything else that would help a developer reproduce the bug
    • Incorrect password given.

Steps to reproduce

  1. Correctly provide mysql credentials in env.php
  2. misstype the password
  3. run any bin/magento commands
  4. receive error Port must be configured within host parameter (like localhost:3306

Expected result

Expected error on connection or password.

Actual result

In Mysql.php line 464:

  Port must be configured within host parameter (like localhost:3306


Additional information

No response

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

Labels

Issue: needs updateAdditional information is require, waiting for responseReported on 2.4.7-P8Indicates original Magento version for the Issue report.

Type

No type

Projects

Status

Needs Update

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions