Skip to content

Give Test Connection the same plain diagnosis as Connect #809

Closed

Description

@EVWorth

Severity: P2

What happens

Confirmed in the backend code; the mock returns raw text for Test as well.

  1. On ?mock, open "New Connection…", set the port to 3307, click Test Connection. The result is the raw driver text: "Connection failed: error communicating with database: Connection refused (os error 111)".
  2. Connecting the same address from the + menu gives the plain diagnosis instead: "Nothing is listening on localhost:3307. The server is stopped, or it is listening on a different port."
  3. On a real server that times out, Test reports "pool timed out while waiting for an open connection". Connect probes again and explains the cause.
  4. A successful test against MariaDB reads "Connected to MySQL 10.x-MariaDB".

Cause

  • src-tauri/crates/mas-core/src/connection/manager.rs:505-514: test_connection formats Connection failed: {e} directly.
  • src-tauri/crates/mas-core/src/connection/mod.rs:111-160: describe_first_connect_failure / diagnose_connect_error are used only by connect.
  • manager.rs:490: hard-coded "MySQL".

Fix

Run Test's failure through describe_first_connect_failure, including the pool-timeout probe. Name the vendor from the version string ("MariaDB 10.11.6" vs "MySQL 8.0.39").

Part of #783.

Activity

  1. added
    bug
    on Oct 21, 2026
  2. added a commit that references this issue on Oct 23, 2026
    c831bdc
  3. added a commit that references this issue on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions