You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Give Test Connection the same plain diagnosis as Connect #809
Confirmed in the backend code; the mock returns raw text for Test as well.
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)".
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."
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.
A successful test against MariaDB reads "Connected to MySQL 10.x-MariaDB".
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").
Activity
fix: diagnose Test Connection like Connect
release: 1.4.0 (#871)