I'm looking for instructions 'how to install ZMySQLDA on windows'

I have installed python 2.4, Zope 3, and I have downloaded The Zope MySQL Database Adapter (ZMySQLDA), available from http://www.zope.org/Members/adustman/Products/ZMySQLDA

I unpacked and copied library to zope/lip/python/Products directory and I restarted Zope server but... my ZMySQLDA isn't avaliable from my admin panel, what am I doing wrong?

How to connect Zope and MySQL on win correctly?

有帮助吗?

解决方案

ZMySQLDA is a Zope2 Product; in Zope 3 I'd use SQLAlchemy integrated with zope.sqlalchemy (and optionally z3c.saconfig) to access MySQL data in your application.

Note that your biggest problem is most likely one of being able to find the python MySQL drivers. See Integrating MySQL with Python in Windows for help on that part (scan through the answers for the python-2.4 links).

其他提示

Actually, I'd use SQLAlchemyDA, which relies on zope.sqlalchemy. There's still plenty of reason to use Database adapters in a Zope 3 world.

Starting your instance in "debug" mode will usually show if you are missing python drivers.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top