Mymysql connection string for Mysql hosted on Azure #1077
Labels
No Label
backport/done
backport/v1
blocked
db
oracle
db
sqlserver
duplicate
feature
cache
frontport/done
frontport/main
invalid
kind
breaking
kind
bug
kind
build
kind
dependencies
kind
docs
kind
driver
kind
enhancement
kind
feature
kind
performance
kind
proposal
kind
question
kind
refactor
kind
testing
need
feedback
need
test
proposal:accepted
RaspBerry Pi
regression
skip-changelog
upstream
wip
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#1077
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm trying to connect to MySql DB hosted on Azure using mymysql driver.
I tried connecting using this connection string:
tcp:servername.mysql.database.azure.com:3306*dbname/username@servername/password
but i'm getting an error:
Received #9002 error from MySQL server: "SSL connection is required. Please specify SSL options and retry."
I tried adding ssl options, but I see that the only supported options are "ladder" and "timeout".
previously I used mysql driver with the following connection string and it worked:
username@servername:password@tcp(servername.mysql.database.azure.com:3306)/dbname?allowNativePasswords=true&tls=true
How can I enable the ssl option using mymysql?
I'm not very familiar with this driver. You can go to https://github.com/ziutek/mymysql to find the options.
I just noticed that they have an open issue on this https://github.com/ziutek/mymysql/issues/121
Yes. Maybe you could try github.com/go-sql-driver/mysql