[Zope] Making a Database Connection to MySQL

Rob Page rob.page@digicool.com
Sat, 25 Sep 1999 08:17:00 -0400


> I'm looking at switching from using PHP to Zope for an intranet 
> application.  The problem is I can't find how to add another 
> database (in 
> this case a MySQL DB).  Basically I've installed Zope 2.0.1 
> and everything 
> is working, now what do I have to connect to MySQL.

[Caveat reader - I don't know MySQL] You need to install the MySQL
client libraries and get to the point where you can run character mode
queries from the client.  Then, install the MySQL Database Adapter (DA)
into your Zope distribution.  Restart Zope and you should be off to the
races!

--Rob

P.S. - I am not sure of the current status of the MySQL DA vis-a-vis
concurrency -- some DAs are not threadsafe requiring you to run Zope 2
in single-threaded mode :^(