[Typo3-dev] adodb - losing connection to TYPO3_DB
Dmitry Dulepov
typo3 at fm-world.ru
Mon Oct 3 15:31:20 CEST 2005
Hi!
Thomas Murphy wrote:
> btw.: Is there a "clean way" to reconnect? Right now I just hardcoded my
> username/password into the connection statement, because AFAIK the
> connection settings are not part of the TYPO3_CONF_VARS.
> Can I somehow access the username/password for the DB from my extension
> scope?
>
There are variables in typo3conf/localconf.php:
=====================
$typo_db_username = '...; // Modified or inserted by TYPO3 Install
Tool.
$typo_db_password = '...'; // Modified or inserted by TYPO3 Install Tool.
$typo_db_host = 'localhost'; // Modified or inserted by TYPO3
Install Tool.
$typo_db = '...'; // Modified or inserted by TYPO3 Install Tool.
=====================
You can define they as 'global' or use $GLOBALS['...'] and reconnect.
Dmitry.
More information about the TYPO3-dev
mailing list