Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

set default protocol to tcp #1074

Open
Open
Labels
Milestone
@DavisLinger

Description

Issue description

Can tcp of the connection string be set as a default protocol option, which will fix the url standard, we can easily parse out the parameters of the entire connection string, and adding the tcp parameter will cause the entire string to fail to complete according to the url standard Parsing.

Example code

"mysql://root:123456@127.0.0.1:3339/ad_base?charset=utf8"

this url can be parsed.but this url can not be parsed because of tcp():

"mysql://root:123456@tcp(127.0.0.1:3339)/ad_base?charset=utf8"

Configuration

*Driver version (or git SHA):latest

*Go version:go 1.12-1.14

*Server version: MySQL 8.0

Server OS: E.g. Mac OS Catalina

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /