debian python-mysqldb

Duncan Smith buzzard at urubu.freeserve.co.uk
Thu May 2 17:12:37 EDT 2002


On Windows 2000, but this works for me,

>>> import MySQLdb
>>> conn = MySQLdb.connect(host="localhost", user="me",
passwd="my_password")
>>> conn
<MySQLdb.connections.Connection instance at 01156694>
>>>

Duncan

"Billy Ng" <kwokng at earthlink.net> wrote in message
news:sShA8.5$Ot3.1 at newsread2.prod.itd.earthlink.net...
> I want to connection my python program to talk to a mysql database.  I am
> using debian linux and I have installed the testing python-mysqldb 0.9.1-3
> module, but I got error when I used mysqldb.connect().  What is package
name
> actually I should use?  Would any please tell me how call the
python-mysqldb
> methods?
>
> Thanks!
>
> Billy Ng
>
>
>
>
>





More information about the Python-list mailing list