Tutorial/example using MySQL from python CGI program

Christian Tismer tismer at tismer.com
Sun Feb 9 20:44:06 EST 2003


Jeff Bauer wrote:
> Hi Will.
> 
> If you're not in a hurry I might be willing to help out
> and use the experience to write up a short How-To document.

Hi Jeff!,

I a in a hurry, and I'm asking you t help not
letting current idiocrazy into another level
of perlish language extensions.

I'd even pay you!

> Jeff Bauer
> Rubicon Research
> 
> 
> Will Stuyvesant wrote:
> 
>>I use Python for my CGI scripts.  On Sourceforge and other hosts they
>>have "mysql" available and they advise you to use it, instead of
>>writing to files from your CGI script.  I am quite happy using files
>>now (I have implemented some kind of filelock by creating directories
>>with a special name), but I am always open to suggestions.

Looks all very reasonable

>>Can you give short example code (like in my favorite Python book: the
>>Python Standard Library by Fredrik Lundh) how I could use that mysql
>>they seem to offer?  I am new to mysql and I usually decide if I
>>should use things based on examples, but I can not find any.  They
>>have python 1.5.2.

/Good/ reading!

-- 
Christian Tismer             :^)   <mailto:tismer at tismer.com>
Mission Impossible 5oftware  :     Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9a     :    *Starship* http://starship.python.net/
14109 Berlin                 :     PGP key -> http://wwwkeys.pgp.net/
work +49 30 89 09 53 34  home +49 30 802 86 56  pager +49 173 24 18 776
PGP 0x57F3BF04       9064 F4E1 D754 C2FF 1619  305B C09C 5A3B 57F3 BF04
      whom do you want to sponsor today?   http://www.stackless.com/







More information about the Python-list mailing list