Re: [Zope] Change db connect string in python or dtml

2000-08-03 Thread Chris Withers
Craig Allen wrote: As a quick and dirty alternative (untested), just edit your connection parameters in your Mysql connector to point to the different server (you'll want to close the connection first, I expect). I think this is probably the best way to do it :-) The idea behind a database

[Zope] Change db connect string in python or dtml

2000-08-02 Thread Magnus Heino
Hi. I have an instance of a 'Z MySQL Database Connection' called mysql.

RE: [Zope] Change db connect string in python or dtml

2000-08-02 Thread Wilkinson Charlie E
Title: RE: [Zope] Change db connect string in python or dtml Have you tried: create a new instance of a database connection alongside the old one, then point your SQL methods at the new connection. When you have them all switched over, delete the old connection. -cw- -Original Message

Re: [Zope] Change db connect string in python or dtml

2000-08-02 Thread Craig Allen
Magnus Heino wrote: How can I change the 'Database Connection String' and then then try to connect, either in dtml or python? I think I understand what you are asking, since I am developing a database app and have switched about 20 methods back and forth between two database servers... it gets