Skip to content

What if my password contains @ sign? #266

@elgs

Description

@elgs

I use the code from the doc to connect to the db, like so:

db, err := sql.Open("mysql", "user:password@/dbname")

Now I found when my password contains the @ sign, it failed to connect. The error message is like so:

runtime error: invalid memory address or nil pointer dereference

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