[Zope] RE: Zope and MySQL on Windows

Crosbie Fitch crosbie@cyberspaceengineers.org
Sat, 11 Jan 2003 10:48:41 -0000


>From: Deb B.
>Thanks for your response Chris. I would appreciate ANY assistance with the
installation of these products. I've had
>them downloaded for quite a while but because I'm no programmer I couldn't
figure out how to install them on
>Windows with express instructions...which the author didn't provide. Do you
or anyone else have instructions
>for installing on Windows which is geared toward the non-programmer? I can
figure most things out myself,
>but this one eluded me....
>Thanks for any help you/anyone can offer.

Here's something I accidentally posted off-list to someone doing this sort
of thing, but I reckon I should rectify this.

There was only one brick wall I came across when installing 'MySQL for
Python' in order to use MySQL with Zope.

After having installed zope and MySQL, I tried to install MySQL for Python,
but when it asked for the directory to install to there was no way to enter
anything. I finally found the following message from
http://sourceforge.net/forum/forum.php?thread_id=621106&forum_id=70461

which provides a fix.

"
By: locquet ( Bertrand LOCQUET )
 RE: Install Win32 Pythonware Distro
2002-10-03 07:36
I found a solution
Before installing MySQL-python-0.9.2.win32-py2.1.exe
Just add an entry to you register base :
[HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.1\InstallPath]
@="C:\\Program Files\\WebSite\\bin"

Replace the default value @= with the path to you python.exe installed with
Zope.

Then run the MySQL-python installation and select the entry. It works well
;-)
"


The alternative is to install Python separately, then install MySQL for
Python and copy the files over. I reckon that's more pain so I didn't do it.

The ZMySQLDA (which is also required) was an easy install.