Hi, I got this error in a Python
script X which until yesterday ran without problem: OperationalError: (2005,
"Unknown MySQL Server Host 'mysql4db.gradwell.net' (2)") The script, X, calls a
script Y. The script X has already successfully connected to the database using
the above host. Script Y contains a helper function foo() which does a look up
in the database and to do this creates a connection. It was Y that incurred the
error. The error was fixed by adding a further optional argument to foo() that
holds an open database connection. My problem is that the erorr
message is clearly wrong. If there is some way that someone knows whereby Python,
MyDQL and MySQLdb could manufacture this erroneous error message I’;d be
glad to hear of it for I cetainly have no idea where to look. Otherwise it is
an error with my ISP’s setup (Gradwell.com) which is complex. This is using MySQLdb on ‘FreeBSD
4.8-STABLE (RED03072003)’ Python is Python 2.3.4 (#2, Nov 14 2004,
18:06:48) [GCC 2.95.4 20020320
[FreeBSD]] on freebsd4’ (provided the Python that Apache is using is the
samePython as my shell uses which I believe that it is) Thanks for any suggestions, Peter |
_______________________________________________ DB-SIG maillist - DB-SIG@python.org http://mail.python.org/mailman/listinfo/db-sig