Skip to content
This repository was archived by the owner on Oct 8, 2018. It is now read-only.
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

@davidjwilkins

Description

@davidjwilkins

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.

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