[Tutor] Avoiding MySQLdb Warnings

"Héctor Villafuerte D." hec.villafuerte at telgua.com.gt
Tue Jan 13 14:40:57 EST 2004


Hi all,
I'm using this piece of code to connect to a MySQL database:
loc_db = MySQLdb.connect(host = "localhost", user = "villaf", passwd = 
"hvillaf", db = "traffic", \
                         cursorclass=MySQLdb.BaseCursor)

But it raises the following exception:
AttributeError: 'module' object has no attribute 'BaseCursor'

I'm trying to use the BaseCursor, because it doesn't raises warnings 
from MySQL.
Any ideas ?
Thanks in advance,
Hector




More information about the Tutor mailing list