On 22 Jun 2006 02:50:04 -0700, "rodmc" <userprogoogle->
declaimed the following in comp.lang.python:
>
> try: #Exception handler for database queries
> db = MySQLdb.connect(host=DBSERVERIP, user="user",
> passwd="password", db="nuke")
> except:
> print "A database connection error has occurred"
> return False
Oh, now that is really informative... You don't display any of the
exception parameters -- not even the name. Removing the try/except would
be more useful...
However...
Is the MySQL security system configured to permit specified user to
connect from the server machine itself? Is there a firewall that may
have the MySQL port open to the outside world but not on the loopback
(localhost) connection?
--
Wulfraed Dennis Lee Bieber KD6MOG
HTTP://wlfraed.home.netcom.com/
(Bestiaria Support Staff:
web-)
HTTP://www.bestiaria.com/