How To Migrate Magento From Development To Production Servers
2015-06-16 17:20
776 查看
http://www.magikcommerce.com/blog/how-to-migrate-magento-store-from-development-to-production-server
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
Now, place following lines of SQL commands at the end of the .sql file
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
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
1 2 3 4 5 6 7 8 | 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; |
1 2 3 4 5 6 7 | 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; |
to Production.
相关文章推荐
- 基础知识:电源管理方案APM和ACPI比较
- 逆向思维 PMC云化数据中心的“技术”革命
- NPM小结
- mipmap 目录和drawable 目录有什么区别
- 阿里巴巴技术分享栈-北京大学-2015年6月15日
- 【PM】信息化系统软件开发流程
- 【PM】测试阶段源码和测试环境版本控制
- npm总是安装不成功,而且很慢?
- rpm 命令使用,包格式
- RPM安装时"Header V3 DSA signature: NOKEY, key ID*****"错误的解决方法
- CC1110 Mini Development Kit 868-915 MHz
- 51cto学院与我的产品经理之路
- 修改开机logo图片之png转ppm
- 产品经理常犯的10个错误
- pmp论坛
- pmp论坛
- IPMI总结
- smokeping报错Can't locate RRDs.pm in @INC (@INC contains
- yum方式软件管理及进阶源码编译安装
- ShopMall