K
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 call last):
File "C:\Python27\dbconnect.py", line 8, in <module>
cursor = db.cursor()
AttributeError: cursor
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 call last):
File "C:\Python27\dbconnect.py", line 8, in <module>
cursor = db.cursor()
AttributeError: cursor