How To Migrate Magento From Development To Production Servers
来源:互联网 发布:mysql 关闭数据库 编辑:程序博客网 时间:2024/05/20 21:24
How To Migrate Magento From Development To Production Servers
Migrating Magento from Development (Staging) to Production (Live) is a challenging tasks especially if you haven’t done it before. Learn the painless Magento migration from Development to Production servers.
For moving magento from development to live server you need to upload your magento directory to live server and then change the db configuration from “app/etc/local.xml” to connect to the live database.
Step 1: Take a backup of entire Magento database as .sql file. So, for an example your development site is located at http://devsite.com/ and your live site is located at http://livesite.com.
Step 2: Open the backup file you created at step 1 and do Search/Replace all from “devsite.com” to “livesite.com”.
Magento stores complete url paths inside the database. Therefore you’ll end up with database full of url paths. If you try to import the file with changes done as above then it may not imported & shows some foreign key issue. To fix Magento foreign key issues at import you have to do the followings:
Place following lines of SQL commands on the top of the .sql file
12345678
SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT;SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS;SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION;SET NAMES utf8;SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE=\'NO_AUTO_VALUE_ON_ZERO\';SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0;
Now, place following lines of SQL commands at the end of the .sql file
1234567
SET SQL_MODE=@OLD_SQL_MODE;SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT;SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS;SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION;SET SQL_NOTES=@OLD_SQL_NOTES;
Finally, save the .sql file & import it into the live DB & you are done. I hope this will help you migrate Magento from development to production. Please leave us a comment and let us know if you run into any trouble migrating your Magento store from development to Production.
- How To Migrate Magento From Development To Production Servers
- How to migrate from code-centric to model-centric development using Rational Software Architect
- How to create Magento invoice from order
- How to migrate DTS package from Server A to Server B
- How to Cluster Magento, nginx and MySQL on Multiple Servers for High Availability
- How to migrate data from another Mac using Mountain Lion and earlier
- From Sample Code to Production Driver
- Migrate apps from Internet Explorer to Mozilla
- Migrate ConcourseConnect from Postgre to MySQL
- Migrate tickets from mantis to JIRA
- migrate gentoo from virtualbox to vmware vsphere
- how to mount between Linux servers
- How to deploy self-developed bundle to Opendaylight production environment
- How To Migrate ASMLIB devices to Block Devices (non-ASMLIB)
- How to add RD license servers to a win8 host
- Magento how to remove the catelog filter from the layer navigation?
- Seamless migration from Nova-network to Neutron in eBay production
- Forward: Migrate apps from Internet Explorer to Mozilla
- 通俗易懂的 “数据库范式(1NF 2NF 3NF BCNF)详解”
- Ubuntu下 IDEA安装和使用教程
- GRE作文备考——文化类
- Spring ClassPathXmlApplicationContext和FileSystemXmlApplicationContext
- CentOS 6.X 安装oracle-xe-11数据库(64位)
- How To Migrate Magento From Development To Production Servers
- 拍照时光圈与景深控制
- HDU 1829 A Bug's Life
- MYSQL一键导出SQL批处理,比较懒,所以写了这个东西
- flex Shared Object 学习笔记
- 为js的数组添加contains方法,方便使用
- ASIHTTPRequest详解
- http详解地址--http下午茶
- IOS初级:NSUserDefaults