Skip to content

localhost+port = default port #158

@vzong

Description

@vzong

db = MySQLdb.connect(host="localhost", port=12345, user=mysql_user, passwd=mysql_password, db="configdb", charset='utf8', connect_timeout=10)
print(db.port) # 12345
but connect to default port 3306.

if host="127.0.0.1", port=12345
connect to 12345.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions