void332 - 2009-09-22

I've successfully installed the following Win XP x64:

  • MySQL 5.1.39
  • MySQL Administrator
  • Python 2.6.2
  • MySQL-python-1.2.2.win32-py2.6

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!