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
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
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