[Tutor] MySQL and Python

Jackson david.jay.jackson@wcox.com
Mon, 29 Oct 2001 12:40:15 -0700


Can the MySQLdb module be installed into the cgi-bin dir, and called with import /path_to_cgi-bin/MySQLdb ?

Just a thought.
David




---------- Original Message ----------------------------------
From: Boudewijn Rempt <boud@valdyas.org>
Reply-To: boud@valdyas.org
Date: Mon, 29 Oct 2001 19:49:11 +0100

>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>On Monday 29 October 2001 19:36, Pijus Virketis wrote:
>> Hi all,
>>
>> I wish to write a Python and MySQL script, which will run on my ISP's
>> server. After checking the Database SIG on python.org, I gathered that one
>> needs the <MySQLdb> module (http://sourceforge.net/projects/mysql-python)
>> to be installed in order to be able to access a MySQL database from Python.
>> My ISP does not have that module installed, and asked me to provide more
>> information about it. Before I send those guys off installing software on
>> their server, I just want to make sure if this really is the prefered/real
>> way of doing things? Is there some general DB API I can use instead that
>> comes with basic Pyhon?
>>
>
>MySQLdb implements the standard database API for Python - and I certainly
>prefer to use it. However, you migth also want to investigate an ODBC-based
>solution - with mxODBC. I've never used that, though, since I hate introducing
>extra dependencies (in this case, an ODBC driver for MySQL).
>
>- -- 
>
>Boudewijn Rempt | http://www.valdyas.org
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.0.6 (GNU/Linux)
>Comment: For info see http://www.gnupg.org
>
>iD8DBQE73aSoN8fj6DnPxOgRAlJrAKCkFGL8q6EBmpaKkB6dx/0tmjeTOQCcC6O+
>9nPweSxd6emV7qKc1Gcbdk0=
>=+O5H
>-----END PGP SIGNATURE-----
>
>_______________________________________________
>Tutor maillist  -  Tutor@python.org
>http://mail.python.org/mailman/listinfo/tutor
>