468,511 Members | 1,682 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,511 developers. It's quick & easy.

Failing connection with MySQLdb on Mac OS X

Getting weird error, and I was wondering if anyone had any suggestions.
My system appears to satisfy all MySQLdb prerequisities in terms of
python, mysql, etc. Also, phpMyAdmin works fine with mysql, leading me
to believe that my installation of MySQLdb is at fault. Any ideas?

For file test1.py (for appropriate values of user and passwd, and
database location exists)

import MySQLdb
db = MySQLdb.Connect ( host="localhost", user="yyy", passwd="xxx",
db="location" )

Error is :

Traceback (most recent call last):
File "test1.py", line 3, in ?
db="location" )
python2.3/site-packages/MySQLdb/__init__.py", line 63, in Connect
return apply(Connection, args, kwargs)
python2.3/site-packages/MySQLdb/connections.py", line 115, in __init__
self._make_connection(args, kwargs2)
python2.3/site-packages/MySQLdb/connections.py", line 41, in
apply(super(ConnectionBase, self).__init__, args, kwargs)
_mysql_exceptions.InternalError: (-1, 'connection is closed')
Jul 18 '05 #1
0 1323

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Dave Harrison | last post: by
1 post views Thread by Peter Nikolaidis | last post: by
2 posts views Thread by Josh | last post: by
1 post views Thread by Steve | last post: by
reply views Thread by Bernard Lebel | last post: by
10 posts views Thread by nephish | last post: by
1 post views Thread by Yi Xing | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.