Help: Using MyODBC with Python
Gerhard Häring
gh_pythonlist at gmx.de
Wed May 1 15:19:55 EDT 2002
* Sabine Richter <sabine at textraeume.de> [2002-05-01 20:58 +0200]:
> Hello,
>
> I downloaded and installed myODBC 3.51.
Mmh. That is a Unix implementation for ODBC ...
> As far as I understand, it is
> only the driver, which provides the connection to the database. In my
> example, it is MySQL 3.23.49.
So you want to access a MySQL database from Python? Good news! You can
take all that ODBC stuff and feed /dev/null with it. ;-)
There's a Python module for accessing MySQL databases. If that is what
you want, run, don't walk to
http://sourceforge.net/projects/mysql-python
This module is an implementation of the Python database API (aka
DB-API), version 2. A lot of Python database resources are available
here:
http://www.python.org/sigs/db-sig/
This might be interested in this article:
http://www.linuxjournal.com/article.php?sid=2605
while it talks about a different database module, this doesn't matter
much. Thanks to the Python DB-API, the modules all share the same
interface.
Gerhard
--
This sig powered by Python!
Außentemperatur in München: 15.2 °C Wind: 2.3 m/s
More information about the Python-list
mailing list