« djangoがこわれた? | ホーム | MySQLがおかしかった »

2006年8月28日

djangoがこわれたというよりMySQLdbがおかしい?

つかなんかMySQLdbの挙動がおかしい?何が起こってる?

hironobu@shirley ~ $ python
Python 2.4.3 (#1, Aug 28 2006, 14:09:48) 
[GCC 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import MySQLdb
>>> conn = MySQLdb.connect(db='dbhoge', user='hoge', passwd='xxx')
>>> c = conn.cursor()
>>> c.execute('SHOW TABLES')
Traceback (most recent call last):
  File "", line 1, in ?
  File "/usr/lib/python2.4/site-packages/MySQLdb/cursors.py", line 163, in execute
    self.errorhandler(self, exc, value)
  File "/usr/lib/python2.4/site-packages/MySQLdb/connections.py", line 35, in defaulterrorhandler
    raise errorclass, errorvalue
_mysql_exceptions.InterfaceError: (0, '')

トラックバック(0)

トラックバックURL: http://foursics.jp/cgi-bin/mt/mt-tb.cgi/13

コメントする