Skip to content
This repository was archived by the owner on Oct 8, 2018. It is now read-only.

Can't connect to database if username (or probably even password) contains an @ #7

Closed
davidjwilkins opened this issue Aug 31, 2018 · 0 comments

Comments

@davidjwilkins
Copy link
Contributor

Suppose I can connect to sql from the command line with:

mysql [email protected] -hfakeapp-mysql-server.mysql.database.azure.com -p'p@ssword'

This is an issue because when using Azure Mysql, the username always contains @hostname (see here.

The problem is that when you do u := clean.String(), it is escaping everything, but the mysql driver expects the username and password to come through unescaped. I assume the other drivers would as well.

I'll put in a pull request shortly.

davidjwilkins pushed a commit to davidjwilkins/sqlcon that referenced this issue Aug 31, 2018
davidjwilkins pushed a commit to davidjwilkins/sqlcon that referenced this issue Aug 31, 2018
@aeneasr aeneasr closed this as completed in 068c699 Sep 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant