Skip to content

Unable to connect to wikimedia labsdb #30

@ananthrk

Description

@ananthrk

The following example code does not seem to work for the labs db connection parameters.

from mw import database
db = database.DB.from_params(
host="enwiki.labsdb",
read_default_file="~/.my.cnf",
user="myusername",
db="enwiki_p"
)

It fails in the pymysql.connect method with the following error:

pymysql.err.OperationalError: (1045, "Access denied for user 'myusername'@'<ip_address>' (using password: YES)")

FWIW, the parameter values are correct as the same works from the command line.

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