[Typo3-dev] adodb - losing connection to TYPO3_DB

Elmar Hinz elmar.hinz at vcd-berlin.de
Sun Oct 2 22:29:55 CEST 2005


Thomas Murphy wrote:
> Hello everyone,
> 
> I'm using adodb in one of my extensions to access data from a foreign 
> mySQL-DB. After I successfully connected to it, it seems the Connection 
> to the TYPO3_DB is lost - it then tries to connect to the TYPO3_DB with 
> the data (username/password) I used for the foreign mySQL-DB. (!)
> ("Access denied for user...")
> 
> I made some dirty hotfix for this by manually reconnecting to the 
> TYPO3_DB with the username/password for that DB after my plugin has 
> finished.
> I checked php.ini settings for maximum persistent and normal 
> connections, but they are all set to "-1" (unlimited).

Hi Thomas, how are you?

I don't have the feeling that it has anything to do with the count of 
possible connections. Rather with both libraries trying to use the same 
"default connection".

I don't know if those libraries are using the function mysql_connect but 
I think

http://php.speedbone.de/manual/en/function.mysql-connect.php

could give you at least some clues of how connections fall back to 
defaults if not all parameters are given.

Regards

Elmar




-- 
Climate change 2005: New Orleans, Sahel, Bangladesh, Spain, Portugal, 
Austria, Swiss, France, ...
Production of CO2 is killing people.
Production of CO2 just for fun is killing people just for fun.




More information about the TYPO3-dev mailing list