magento错误查看


查找相关文章:magento

接手一个magento搭建的商城,一时找不到北,不知道从何处学起
打开首页更是出现一个错误提示
There has been an error processing your request
Exception printing is disabled by default for security reasons.
Error log record number: 1026508325

点击链接发现无法打开,上网查了下,原来错误日志存放在网站目录 /var/report/下,打开1026508325看了下,原来是数据库配置错误,本地和服务器不一致

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