[DB-SIG] DSN question

battery841@excite.com battery841@excite.com
Sun, 13 Feb 2000 16:09:47 -0800 (PST)


I am writing a Python app which is using MySQL
(http://starship.python.net/crew/adustman/MySQLdb.html) on a Linux box to
talk to a mySQL database.  A friend said I need (or at least should, I don't
remember) use DSN to get the host/login/password information.  I don't
necessarily understand the concept of it.  I am kind of new to Python and a
little lost on this.  My friend said DSN uses an external file to read that
information.  However, the MySQL docs seem like they want me to specify the
information in the mysql.connect() line.  How do I go about doing this?  I'd
be connecting to a local host.  Would I put 127.0.0.1 or localhost?  Can
someone give me a hand?  I'm lost :)  Thanks a lot
Kevin





_______________________________________________________
Get 100% FREE Internet Access powered by Excite
Visit http://freeworld.excite.com