Magento moving Magento Changing the server step change the database connection replace the domain name

Source: Internet
Author: User
1, copy the Magento directory to the new server, export the database, import. If you do not go in because the Magento database using FOREIGN KEY constraints, through phpMyAdmin Import error, on the exported SQL file added a row set @[email protected] @FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;2, modify Magento configuration file, location in App/etc/local.xml, note that the content of the modified CDATA is mainly database connection database user name password database name 3, modify Magento database, The path in the Core_config_data table is the content of Web/unsecure/base_url and Web/secure/base_url, for the new domain name of your website, notice the "/" behind the domain name. Replace the website full domain name +/http://www.abc.com/all OK, if not so that you can go into the background to refresh the cache, rebuild index 4, if you have not jumped or do not appear the desired page, empty the browser's cache

Magento moving Magento Changing the server step change the database connection replace the domain name

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.