-1

处理您的请求时出错 出于安全原因,默认情况下禁用异常打印。

Error log record number: 445792780098

Log:
a:4:{i:0;s:46:"SQLSTATE[42000] [1049] Unknown database 'test'";i:1;s:3072:"#0 
/home/geschenk/domains/geschenkengenieten.nl/public_html/lib/Zend/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 
/home/geschenk/domains/geschenkengenieten.nl/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(313): Zend_Db_Adapter_Pdo_Mysql->_connect() #2 
/home/geschenk/domains/geschenkengenieten.nl/public_html/lib/Zend/Db/Adapter/Abstract.php(459): Varien_Db_Adapter_Pdo_Mysql->_connect() #3 
/home/geschenk/domains/geschenkengenieten.nl/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array) #4 
/home/geschenk/domains/geschenkengenieten.nl/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(419): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array) #5 
/home/geschenk/domains/geschenkengenieten.nl/public_html/app/code/core/Mage/Core/Model/Resource.php(169): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8') #6 
/home/geschenk/domains/geschenkengenieten.nl/public_html/app/code/core/Mage/Core/Model/Resource.php(110): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element)) #7 
/home/geschenk/domains/geschenkengenieten.nl/public_html/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(320): Mage_Core_Model_Resource->getConnection('core_write') #8 
/home/geschenk/domains/geschenkengenieten.nl/public_html/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(350): Mage_Core_Model_Resource_Db_Abstract->_getConnection('write') #9
/home/geschenk/domains/geschenkengenieten.nl/public_html/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(335): Mage_Core_Model_Resource_Db_Abstract->_getWriteAdapter() #10 
/home/geschenk/domains/geschenkengenieten.nl/public_html/app/code/core/Mage/Core/Model/Resource/Cache.php(53): Mage_Core_Model_Resource_Db_Abstract->_getReadAdapter() #11 
/home/geschenk/domains/geschenkengenieten.nl/public_html/app/code/core/Mage/Core/Model/Cache.php(455): Mage_Core_Model_Resource_Cache->getAllOptions() #12 
/home/geschenk/domains/geschenkengenieten.nl/public_html/app/code/core/Mage/Core/Model/Cache.php(497): Mage_Core_Model_Cache->_initOptions() #13 
/home/geschenk/domains/geschenkengenieten.nl/public_html/app/code/core/Mage/Core/Model/App.php(1183): Mage_Core_Model_Cache->canUse('config') #14 
/home/geschenk/domains/geschenkengenieten.nl/public_html/app/code/core/Mage/Core/Model/Config.php(414): Mage_Core_Model_App->useCache('config') #15 
/home/geschenk/domains/geschenkengenieten.nl/public_html/app/code/core/Mage/Core/Model/Config.php(294): Mage_Core_Model_Config->_canUseCacheForInit() #16 
/home/geschenk/domains/geschenkengenieten.nl/public_html/app/code/core/Mage/Core/Model/App.php(413): Mage_Core_Model_Config->loadModulesCache() #17 
/home/geschenk/domains/geschenkengenieten.nl/public_html/app/code/core/Mage/Core/Model/App.php(343): Mage_Core_Model_App->_initModules() #18 
/home/geschenk/domains/geschenkengenieten.nl/public_html/app/Mage.php(683): Mage_Core_Model_App->run(Array) #19 
/home/geschenk/domains/geschenkengenieten.nl/public_html/index.php(94): Mage::run('', 'store') #20 {main}";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";}

我通过 Directadmin 进行了转移 任何人都可以找出问题所在吗?

4

2 回答 2

0

请取消注释这些

Mage::setIsDeveloperMode(true);
ini_set('display_errors', 1);

在 index.php 中!当您在浏览器中遇到错误时,您可能使用了错误的数据库凭据或文件权限错误。

于 2013-08-08T10:03:55.393 回答
0

看起来像数据库连接问题。请检查 local.xml 文件中的数据库凭据(数据库名称、用户名和密码)。

于 2013-08-07T19:48:48.560 回答