Skip to content

how can i use aiomysql connect to mysql cluster #560

Open
@waitray

Description

@waitray
db.client = await aiomysql.create_pool(host=str(host), port=int(port),
                                           user=str(user), password=str(passwd),
                                           db=str(mysql_db), loop=None, autocommit=False)

can i set host to a str ,such as "ip1,ip2"?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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