[Tutor] MySQL and Python

Boudewijn Rempt boud@valdyas.org
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-pytho=
n)
> to be installed in order to be able to access a MySQL database from Pyt=
hon.
> My ISP does not have that module installed, and asked me to provide mor=
e
> 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/r=
eal
> way of doing things? Is there some general DB API I can use instead tha=
t
> 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-bas=
ed
solution - with mxODBC. I've never used that, though, since I hate introd=
ucing
extra dependencies (in this case, an ODBC driver for MySQL).

- --=20

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=3D
=3D+O5H
-----END PGP SIGNATURE-----