实际上我正在将带有https类型的SSL证书的Magento应用程序从Blue Host转移到Godaddy Server。
我现在购买了SSL证书,我的网站可以打开但是它给出了错误。 我进入了var / report / xxxxxxxx文件,它给出了以下错误。
a:4:{i:0;s:105:"SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)";i:1;s:2633:"#0 /home/content/43/6301943/html/beta/lib/Zend/Db/Adapter/Pdo/Mysql.php(109): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /home/content/43/6301943/html/beta/lib/Varien/Db/Adapter/Pdo/Mysql.php(320): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /home/content/43/6301943/html/beta/lib/Zend/Db/Adapter/Abstract.php(460): Varien_Db_Adapter_Pdo_Mysql->_connect()
#3 /home/content/43/6301943/html/beta/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#4 /home/content/43/6301943/html/beta/lib/Varien/Db/Adapter/Pdo/Mysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#5 /home/content/43/6301943/html/beta/app/code/core/Mage/Core/Model/Resource.php(169): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')
#6 /home/content/43/6301943/html/beta/app/code/core/Mage/Core/Model/Resource.php(110): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element))
#7 /home/content/43/6301943/html/beta/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(320): Mage_Core_Model_Resource->getConnection('core_write')
#8 /home/content/43/6301943/html/beta/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(350): Mage_Core_Model_Resource_Db_Abstract->_getConnection('write')
#9 /home/content/43/6301943/html/beta/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(335): Mage_Core_Model_Resource_Db_Abstract->_getWriteAdapter()
#10 /home/content/43/6301943/html/beta/app/code/core/Mage/Core/Model/Resource/Cache.php(53): Mage_Core_Model_Resource_Db_Abstract->_getReadAdapter()
#11 /home/content/43/6301943/html/beta/app/code/core/Mage/Core/Model/Cache.php(478): Mage_Core_Model_Resource_Cache->getAllOptions()
#12 /home/content/43/6301943/html/beta/app/code/core/Mage/Core/Model/Cache.php(520): Mage_Core_Model_Cache->_initOptions()
#13 /home/content/43/6301943/html/beta/app/code/core/Mage/Core/Model/App.php(1183): Mage_Core_Model_Cache->canUse('config')
#14 /home/content/43/6301943/html/beta/app/code/core/Mage/Core/Model/Config.php(414): Mage_Core_Model_App->useCache('config')
#15 /home/content/43/6301943/html/beta/app/code/core/Mage/Core/Model/Config.php(294): Mage_Core_Model_Config->_canUseCacheForInit()
#16 /home/content/43/6301943/html/beta/app/code/core/Mage/Core/Model/App.php(413): Mage_Core_Model_Config->loadModulesCache()
#17 /home/content/43/6301943/html/beta/app/code/core/Mage/Core/Model/App.php(343): Mage_Core_Model_App->_initModules()
#18 /home/content/43/6301943/html/beta/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#19 /home/content/43/6301943/html/beta/index.php(87): Mage::run('', 'store')
#20 {main}";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";}
我第一次在Megento工作。所以我不知道如何解决上述错误。
任何帮助将不胜感激。
感谢。
答案 0 :(得分:3)
似乎您的数据库详细信息不正确。转到app / etc / local.xml并更正您的数据库详细信息。
答案 1 :(得分:1)
重新启动你的mysql服务器然后它将被修复。