Re: mysql-python

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Thu, 2010-03-25 at 14:14 +0800, Christopher Chan wrote:
> Is it me or does the MySQLdb module in Centos not support python's DBAPI 
> 2.0

---
Well you give no clue to the code your using.  Post what type your
using,

It uses cursors so it it is compliant as far as I see.

I get you installed it and it is dbapi 2.

What does your python code look like?

db = MySQLdb.connect (dsn='192.168.0.1:your_db',
                      user='root', password='password')
##########################
def addEntry(names):

    cursor.initialize()
    cursor = db.cursor ()
###########################

I think a good idea would be to drop it and go to postgres, and import
pgdb.

John 

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux