Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'passwd' is an invalid keyword argument for connect() #74

Open
sprite311 opened this issue Dec 21, 2021 · 1 comment
Open

'passwd' is an invalid keyword argument for connect() #74

sprite311 opened this issue Dec 21, 2021 · 1 comment

Comments

@sprite311
Copy link

sprite311 commented Dec 21, 2021

in python 3.9 mysqlclient 1.3.14
'passwd' is an invalid keyword argument for connect()

db=MySQLdb._mysql.connect(
chang to:
db=MySQLdb.connect(
  host=host,
  port=int(port),
  user=username,
  passwd=password,
  db=database,
  charset='utf8',
  use_unicode=True
)
@milnomada
Copy link

in python 3.9 try:

import MySQLdb

db = MySQLdb.connect(user="", passwd="..", host="...")
db.execute("""query""")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants