[Tutor] MySQL mangling & list subscription question

Brad Chandler mbc2@netdoor.com
Fri, 3 Aug 2001 16:45:27 -0500


----- Original Message -----
From: "Brad Chandler" <mbc2@netdoor.com>
To: <tutor@python.org>
Sent: Friday, August 03, 2001 4:26 PM
Subject: Re: [Tutor] MySQL mangling & list subscription question


> This is something I use to connect to a MySQL server running on my windows
> box.  It should work exactly the same on linux except for the import and
> database connection lines.  I don't have an example of that at the moment.
>
> import dbi, odbc
>
> mydb=odbc.odbc("mysql/brad/homer") #this function takes an odbc data
source,
> name, pass

That should be "odbc datasource/database name/password".