Error reported on page /index.php

MySQL error: 1046 - No database selected

select configuration_key as cfgKey, configuration_value as cfgValue from configuration

TEP_DB_ERROR