FAQ
Hi;
I have this code:
db = MySQLdb.connect(host, user, passwd, db)
cursor= db.cursor()
cursor.execute(sql, id)
db.commit()

It throws no errors and gives every indication that it executes the command.
I've printed out the command and the id and executed it successfully in
mysql...but not in python from the script. Everything else works in MySQLdb.
What could be the problem?
TIA,
Beno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110216/be3077ae/attachment.html>

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedFeb 16, '11 at 7:58p
activeFeb 16, '11 at 7:58p
posts1
users1
websitepython.org

1 user in discussion

Victor Subervi: 1 post

People

Translate

site design / logo © 2022 Grokbase