[Typo3-dev] Connecting to a different db kills typo3 db connection?

Dmitry Dulepov typo3 at fm-world.ru
Mon Aug 1 13:39:39 CEST 2005


Hi!

Actually, you are right. I overlooked that localconf.php is included between
	$typo_db = '';
and
	define('TYPO3_db', $typo_db);
Thus, yes, TYPO3_db *is* set to the correct database name but somehow
database still should be explicitely selected for the mysql() function
before using it... :(

Anyway, since I know where is the problem, I can find how to fix it :)

Dmitry.



Martin Kutschker wrote:
> "Dmitry Dulepov" <typo3 at fm-world.ru> schrieb im Newsbeitrag 
> 
>>I just found that TYPO3_db is a constant defined to an empty string. But
>>I could not find anywhere how "mysql" function is defined. Mistery :(
> 
> Odd, I thhought it would be set to the db value of localconf.php. Perhaps 
> this was only in pre-DBAL versions the case (eg 3.5).




More information about the TYPO3-dev mailing list