MySQLdb - possible without install?

Gerhard Häring gerhard.nospam at bigfoot.de
Thu Jul 12 05:55:50 EDT 2001


On Thu, 12 Jul 2001 02:44:29 GMT, Ken <ken_chiba at hotmail.com> wrote:
>Just curious.  I'm with an ISP that allows running of scripts, and has
>MySQL database access.  They have a perl API installed, but nothing to
>support Python.  I was wondering if it was possible to just copy over
>the MySQLdb directory from the site-packages area of Python, and just
>"import" it into the scripts?

Yes, this works. MySQLdb needs a compiled extension module, however. You'll
need a compiled version for the platform your provider uses.

Gerhard
-- 
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://highqualdev.com              public key at homepage
public key fingerprint: DEC1 1D02 5743 1159 CD20  A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))



More information about the Python-list mailing list