Skip to content

Can't connect to mssql via URL on command line #19

Closed

Description

@zjttoefs

The URL validation in internal/config/temp.go rejects sqlserver:// and mssql:// URLs, so you cannot provide these URLs on the command line. The program responds with: "sqlmux: Unknown URL mssql://: only postgres://, mysql://, redis:// and SQLite files"

Activity

  1. kackerx commented on Nov 19, 2026

    @kackerx
    Owner

    Thanks for the report and for pointing at the exact place. Fixed in v0.11.0:

    sqlmux 'sqlserver://user:pass@host:1433?database=mydb'
    sqlmux 'mssql://user:pass@host:1433?database=mydb'

    Both open a temporary SQL Server connection named mydb@host, like postgres://, mysql:// and redis:// already did. We also added a test that walks every engine, so a future engine can't miss the command line the same way.

    Upgrade: brew upgrade kackerx/tap/sqlmux, npm install -g sqlmux@latest, or go install github.com/kackerx/sqlmux/cmd/sqlmux@latest. Closing; please reopen if it still refuses your URL.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions