-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
set default protocol to tcp #1074
Labels
Comments
Use |
DSN is not URL. But I think But it is breaking change. Currently, After changing it, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
this url can be parsed.but this url can not be parsed because of tcp():
"mysql:https://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
The text was updated successfully, but these errors were encountered: