문제

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