Trouble with MySQLdb

2009-09-15 Thread Chris
I'm receiving the following error: Traceback (most recent call last): File "db.py", line 189, in rows = db.get("SELECT * FROM survey") File "db.py", line 55, in get self.sql(query) File "db.py", line 47, in sql return self.cursor.execute(query) File "build/bdist.linux-i686/e

Re: some trouble with MySQLdb

2005-06-29 Thread dimitri pater
try: db = MySQLdb.connect(host="localhost", user="user", passwd="pass", db="myDB") localhost can be a URL also (if MySQL is set up properly in the first place) regards, DimtiriOn 6/30/05, nephish <[EMAIL PROTECTED]> wrote: Hey there all,i have a question about how to point my python install to my s

some trouble with MySQLdb

2005-06-29 Thread nephish
Hey there all, i have a question about how to point my python install to my sql database. when i enter this: db = MySQLdb.connect(user="user", passwd="pass", db="myDB") i get this: Traceback (most recent call last): File "", line 1, in -toplevel- db = MySQLdb.connect(user="user", passwd="p