Skip to content

"#" can't be use in a password #306

Open
@liezl001

Description

@liezl001

I am using Linux CentOS 7. The database I'm trying to connect to has a # in its password.
For example the DATA_SOURCE_NAME will look as follow:

DATA_SOURCE_NAME="postgresql://user:pass#word@IP:Port/database"

I will get the following if I try to connect:

Established new database connection to "user:pass"
Error opening connection to database (postgresql://user:pass#word@IP:Port/database): dial tcp: address tcp/pass: unknown port source="postgres_exporter.go:1319"

In other words everything after the # (# included) is removed from the data source name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions