Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
Migrating Magento
 
garyhe
Member
 
Total Posts:  33
Joined:  2008-03-31
 

Hi,

Are there any considerations involved with migrating an installation from one server to another besides tarring the entire folder and dumping it onto the new server and then exporting/importing the sql table?

Thank you.

 
Magento Community Magento Community
Magento Community
Magento Community
 
pauljg1
Sr. Member
 
Avatar
Total Posts:  153
Joined:  2008-02-22
 

Hello,

this is a very new open source commerce solution, but i may say if you are changing servers and the servers are not within the same hosting company or your hosting company has there reasons not to do a seemless migration. This has nothing to do with magento. Or maybe you have worded your question incorrectly.

 
Magento Community Magento Community
Magento Community
Magento Community
 
garyhe
Member
 
Total Posts:  33
Joined:  2008-03-31
 

I’m not complaining or anything. I’m just asking if this is doable.

 
Magento Community Magento Community
Magento Community
Magento Community
 
pauljg1
Sr. Member
 
Avatar
Total Posts:  153
Joined:  2008-02-22
 
garyhe - 16 May 2008 01:18 PM

I’m not complaining or anything. I’m just asking if this is doable.

Yes im sure its do-able but only by what you have said prevously.  To move any database from one server to another be it Joomla or Magento the backup and restore of folders and database are the sound solution.

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1771
Joined:  2007-08-07
Los Angeles
 

@garyhe: before importing database dump to new database make sure to run these statements first:

SET SQL_MODE='';
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKSFOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODESQL_MODE='NO_AUTO_VALUE_ON_ZERO';
After import run these to restore original modes:
SET SQL_MODE=IFNULL(@OLD_SQL_MODE,'');
SET FOREIGN_KEY_CHECKS=IFNULL(@OLD_FOREIGN_KEY_CHECKS,0);

 Signature 

- I would love to change the world, but they won’t give me the source code -

 
Magento Community Magento Community
Magento Community
Magento Community
 
garyhe
Member
 
Total Posts:  33
Joined:  2008-03-31
 

Thank you all

 
Magento Community Magento Community
Magento Community
Magento Community
 
nabuhonodozor
Member
 
Avatar
Total Posts:  38
Joined:  2008-03-27
 

Moshe, Should I make this statements in phpMyAdmin?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1771
Joined:  2007-08-07
Los Angeles
 

@nabuhonodozor: add them to the beginning and the end of your db dump file before importing it.

 Signature 

- I would love to change the world, but they won’t give me the source code -

 
Magento Community Magento Community
Magento Community
Magento Community
 
Adam Shuy
Member
 
Avatar
Total Posts:  44
Joined:  2008-02-20
 

I follow the advice from Moshe and migrate Magento from server to localhost.  But when I click the link in the localhost home page, it goes back to the original server not the localhot.  Do you have any idea how to fix this problem?
Problem solved:  change the base_url from http://www.epacificweb.com to /localhost/magento in sql file, then import the sql file to the local machine.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
53214 users|754 users currently online|107260 forum posts