Install MySQL + Python + Win2K

Gerhard Häring gerhard.nospam at bigfoot.de
Sat Apr 7 18:43:26 EDT 2001


On Sat, 07 Apr 2001 14:06:10 GMT, zc <zenchm at usa.net> wrote:
>Thanks Gerhard !!!
>
>It worked the first time.
>This is waht I did (this is for all other newbies in my situation, that is:
>Win2k + Python + MySQL-3.23.32)
>Steps:
>#1:  Download Python2.1b2 from www.python.org
>#2:  Download MySQL-python-0.3.5-win32-1.zip (from
>http://home.t-online.de/home/err666/)
>#3: Install Python
>#4: unzip MySQL-python-0.3.5-win32-1.zip to a dir of you choice
>#5: modify setup.py (in the mysql module dir), so that the win32 section
>reflects you installation of mysql paths
>#6: in DOS prompt run: python setup.py install
>#7: if you had no errors in step 6:
>      start python command prompt and type: import MySQLdb
>      if you see no tracback, you are OK
>At least this is how it woeked for me.
>I also tested the connection from Apache. Worked fine.

Good to know it did work :-)

Just for information: you can skip step #5. You even don't need to have
anything MySQL installed, if all you want is connect to a different MySQL
server.

Gerhard
-- 
mail:   gerhard <at> bigfoot <dot> de
web:    http://highqualdev.com



More information about the Python-list mailing list