Python + MySQL (Win32)

Kristian Kuula e8Kuula at hotmail.com
Fri Nov 29 23:03:48 EST 2002


HI!

Little problen on connection, I get this:

>>> import CompatMysqldb
>>> conn = CompatMysqldb.mysqldb('test at 192.168.0.1 username password')
Traceback (most recent call last):
  File "<pyshell#3>", line 1, in ?
    conn = CompatMysqldb.mysqldb('test at 192.168.0.1 username password')
  File "C:\PROGRA~1\Python\Lib\site-packages\CompatMysqldb.py", line 317, in
mysqldb
    return Connection(dh[1], val[1], val[2], dh[0])
  File "C:\PROGRA~1\Python\Lib\site-packages\CompatMysqldb.py", line 117, in
__init__
    self.__transactional = self.__conn.server_capabilities &
CLIENT.TRANSACTIONS
AttributeError: server_capabilities

so what is wrong? :/

MySQL version: 3.23.53-max-nt
MySQL-Python version: 0.9.2 (MySQL-python-0.9.2.win32-py2.2.exe)
Python version: 2.2.1




More information about the Python-list mailing list