TYPO3 Exception 1270853882

TYPO3 Fatal Error: No database selected!

typo3conf/LocalConfiguration.php misses the database configuration.

If you've just updated from a version below TYPO3 8.7 , you are most probably missing new configuration in your AdditionalConfiguration.php file. Since TYPO3 8.7 the structure of the db connection configuration has changed.

Something like that will work in AdditionalConfiguration.php:

$GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['dbname'] = 'dbname';
$GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['host'] = '127.0.0.1';
$GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['user'] = 'username';
$GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['password'] = 'passwordtodb';
Copied!

Read more here:

https://docs.typo3.org/typo3cms/CoreApiReference/8.7/ApiOverview/Database/Configuration/Index.html