MySQL: AttributeError: cursor

2012-02-11 Thread Kevin Murphy
Hi All, I'm using Python 2.7 and having a problem creating the cursor below. Any suggestions would be appreciated! import sys import _mysql print cursor test db = _mysql.connect(host=localhost,user=root,passwd=mypw,db=python- test) cursor = db.cursor() cursor test Traceback (most recent

Re: MySQL: AttributeError: cursor

2012-02-11 Thread Albert W. Hopkins
On Sat, 2012-02-11 at 09:40 -0800, Kevin Murphy wrote: Hi All, I'm using Python 2.7 and having a problem creating the cursor below. Any suggestions would be appreciated! import sys import _mysql print cursor test db = _mysql.connect(host=localhost,user=root,passwd=mypw,db=python-