aio-libs / aio-libs/aiomysql

how can i use aiomysql connect to mysql cluster

Open
#560 0 comments 1 reaction 0 assignees View on GitHub
question
Dominant language
Python
Stars
1.9k
Forks
272
PR merge metrics
No merged PRs in 30d

Description

```py3
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"?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.