Magento错误:SQLSTATE [42000] [1049]未知数据库'test'

时间:2013-08-07 19:38:58

标签: magento

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

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进行了转移 任何人都可以找出问题吗?

2 个答案:

答案 0 :(得分:0)

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

答案 1 :(得分:0)

请取消注释这些

Mage::setIsDeveloperMode(true);
ini_set('display_errors', 1);
index.php中的

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