Getting error condition from MySQLdb

Derek Fountain nomail at hursley.ibm.com
Mon Nov 3 01:37:17 EST 2003


I was trying to use MySQLdb to connect to a database. All is OK, except I
can't figure out how to get the details of an error. Suppose I try to
connect to a non existant server, or with the wrong password - how do I get
a meaningful error message which I can present to my user?





More information about the Python-list mailing list