[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Persistant Connection


Hello.

On Fri, Feb 09, 2001 at 09:53:45AM -0500, ruben@xxxxxxxxxxxx wrote:
> Good Morning:
> 
> We have a system of databases (in the plural) which number in the hundreds
> on individual servers.  I want to open a persistant connection on the server
> and switch databases without closing the handle in DBI and reopening it.

The SQL command "USE database" should work.

> Is this possible without getting a rollback warning using DBI?

Hm. What is the exact message? Do you use BDB tables? If yes, maybe an
explicit COMMIT helps? (did not use BDB tables myself, yet).

I nothing else help, you can always work-around the problem by
explicitly stating the database name in your queries (which is not
pretty, but works), like

SELECT * FROM mydatabase.thetable WHERE <some condition>

Bye,

        Benjamin.


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <mysql-thread64882@xxxxxxxxxxxxxxx>
To unsubscribe, e-mail <mysql-unsubscribe-treed=ultraviolet.org@xxxxxxxxxxxxxxx>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



This mailing list archive is a service of Copilot Consulting.