cancel
Showing results for 
Search instead for 
Did you mean: 

Move Magento 1.5.0.1 to other server: connection refused error

Move Magento 1.5.0.1 to other server: connection refused error

Hi,

I want to move an active shop having an old version CE 1.5.0.1 to an other server. After the moved version will run, I want to make an upgrade to the actual Magento version 1.9.2.3

The Magento file system and the database-contents are copied to the new server (by tar and sql-dump). But calling the new test-URL, Magento immediately shows this error. I am new in Magento, maybe somebody has an idea about that error?


SQLSTATE[HY000] [2002] Connection refused

#0 /.../lakshmi-shop/shop/lib/Zend/Db/Adapter/Pdo/Mysql.php(111): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /.../lakshmi-shop/shop/lib/Varien/Db/Adapter/Pdo/Mysql.php(320): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /.../lakshmi-shop/shop/lib/Zend/Db/Adapter/Abstract.php(460): Varien_Db_Adapter_Pdo_Mysql->_connect()
#3 /.../lakshmi-shop/shop/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#4 /.../lakshmi-shop/shop/lib/Varien/Db/Adapter/Pdo/Mysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#5 /.../lakshmi-shop/shop/app/code/core/Mage/Core/Model/Resource.php(179): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')
#6 /.../lakshmi-shop/shop/app/code/core/Mage/Core/Model/Resource.php(110): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element))
#7 /.../lakshmi-shop/shop/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(320): Mage_Core_Model_Resource->getConnection('core_write')
#8 /.../lakshmi-shop/shop/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(350): Mage_Core_Model_Resource_Db_Abstract->_getConnection('write')
#9 /.../lakshmi-shop/shop/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(335): Mage_Core_Model_Resource_Db_Abstract->_getWriteAdapter()
#10 /.../lakshmi-shop/shop/app/code/core/Mage/Core/Model/Resource/Cache.php(53): Mage_Core_Model_Resource_Db_Abstract->_getReadAdapter()
#11 /.../lakshmi-shop/shop/app/code/core/Mage/Core/Model/Cache.php(478): Mage_Core_Model_Resource_Cache->getAllOptions()
#12 /.../lakshmi-shop/shop/app/code/core/Mage/Core/Model/Cache.php(520): Mage_Core_Model_Cache->_initOptions()
#13 /.../lakshmi-shop/shop/app/code/core/Mage/Core/Model/App.php(1183): Mage_Core_Model_Cache->canUse('config')
#14 /.../lakshmi-shop/shop/app/code/core/Mage/Core/Model/Config.php(446): Mage_Core_Model_App->useCache('config')
#15 /.../lakshmi-shop/shop/app/code/core/Mage/Core/Model/App.php(421): Mage_Core_Model_Config->saveCache()
#16 /.../lakshmi-shop/shop/app/code/core/Mage/Core/Model/App.php(343): Mage_Core_Model_App->_initModules()
#17 /.../lakshmi-shop/shop/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#18 /.../lakshmi-shop/shop/index.php(91): Mage::run('', 'store')
#19 {main}

------------------------------------------------------------------------------------------

 

 

2 REPLIES 2

Re: Move Magento 1.5.0.1 to other server: connection refused error

Check app/etc/local.xml; it should contain database connection information. Are they appropriate for the new server? I'm pretty sure they're not ...

Tanel Raja

Re: Move Magento 1.5.0.1 to other server: connection refused error

You need to check your database connection. Moreover, You will need a lot more to upgrade.https://magento2.atlassian.net/wiki/display/m1wiki/Manual+upgrade+using+a+fresh+install+and+new+data...