I've successfully installed the following Win XP x64:
The db is up and running fine (I can connect using MySQL Admin), but when I try to connect in python script it throws an error. The code I'm using is
db = _mysql.connect(host = "localhost",
user = "ai",
passwd = "password",
db = "aidb",
named_pipe = "mysql",
port = 3306)
and the error I'm seeing is:
Traceback (most recent call last):
File "H:\Ralph\Work\Files\xx - AI\AI_make_db.py", line 12, in <module>
TypeError: an integer is required
Any ideas on what the problem might be? I'm very comfy with MySQL, but new to python. Thanks for the help!
Log in to post a comment.
I've successfully installed the following Win XP x64:
The db is up and running fine (I can connect using MySQL Admin), but when I
try to connect in python script it throws an error. The code I'm using is
db = _mysql.connect(host = "localhost",
user = "ai",
passwd = "password",
db = "aidb",
named_pipe = "mysql",
port = 3306)
and the error I'm seeing is:
Traceback (most recent call last):
File "H:\Ralph\Work\Files\xx - AI\AI_make_db.py", line 12, in
<module>
port = 3306)
TypeError: an integer is required
Any ideas on what the problem might be? I'm very comfy with MySQL, but new to
python. Thanks for the help!